Comments (13)
I didn’t notice that adding the return types via PHPDoc (in contrast to real return types) also fixes the issue, so your PR is correct IMO. Thank you!
from imagine.
@ausi symfony thinks that [#\ReturnTypeWillChange] is not enough and phpdoc must be added
from imagine.
We'd first fix these issues: https://github.com/php-imagine/Imagine/milestone/1
from imagine.
Fixed.
from imagine.
This problem should already be fixed by #768 because we added #[\ReturnTypeWillChange]
attributes there.
@jokaorgua Can you please verify if these deprecation messages are gone in the current dev-develop
version?
from imagine.
@ausi I've tried dev-develop version and deprecation messages still exist
ReturnTypeWillChange was introduced in 8.1 and I'm using 8.0.13. I think that is the problem.
from imagine.
This might be a bug in Symfony 5.4 then I think. The Symfony ErrorHandler Component should not report a deprecation for the return type if the attribute #[\ReturnTypeWillChange]
is present (even in PHP 8.0).
from imagine.
@ausi I can not find a code in ErrorHandler component which should react to ReturnTypeWillChange
could you provide a link where it is said that Symfony 5.4 on PHP prior to 8.1 must not trigger a deprecation message?
from imagine.
could you provide a link where it is said that Symfony 5.4 on PHP prior to 8.1 must not trigger a deprecation message?
This is just my opinion, but I think Symfony might agree that a deprecation does not make sense in this case.
That code where the attributes schould be handled is somewhere aroud here I think: https://github.com/symfony/symfony/blob/dcf09d6c0a194f5f36ec963eb6fef92d573db576/src/Symfony/Component/ErrorHandler/DebugClassLoader.php#L563
from imagine.
I created a PR to add the missing types.
from imagine.
symfony thinks that [#\ReturnTypeWillChange] is not enough and phpdoc must be added
Makes sense! 👍
from imagine.
@ausi will this be merged into master and new release created?
from imagine.
@jokaorgua I assume so, see #814
Regarding release, see #768 (comment)
from imagine.
Related Issues (20)
- Split getSupportedFormats into getSupportedInputFormats and getSupportedOutputFormats HOT 2
- Release a PHP 8.1 version HOT 3
- Segmentation fault with GD on 1.3.1 HOT 24
- Support for CMYK ? HOT 11
- curl error: 1409442E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol version HOT 9
- Unable to open remote jpg image HOT 1
- Issue reading GDImage object using \Imagine\Gd\Imagine read() method HOT 3
- Is there an inverse to getGdResource() HOT 7
- Gd\Drawer -> ellipse
- Why does Point class reject negative values...? HOT 3
- Hello, is this image library still being updated? I want him to be a replacement for intervention, because intervention is no longer updated. HOT 1
- `getImageAlphaChannel` returns incorrect value HOT 3
- Incorrect formula to calculate the linnear position. HOT 1
- Update min required PHP version and fix deprecation warnings HOT 3
- Error when file is coming from temp directory: Creating an image in "C:\Users\...\Temp\phpA6B2.tmp" format is not supported, please use one of the following formats: HOT 7
- Feature request: Add support for "setOption('jpeg:size', '800x800');"
- vulnerable libraries (jQuery) HOT 4
- Memory limit not throw new RuntimeException
- Saving Lossless Webp? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imagine.