Skip to content

Conversation

@richard67
Copy link
Contributor

Alternative to PR #28 .

Fix unignorable PHPStan errors in 3.x-dev by adding the ReturnTypeWillChange attribute.

The attribute will be removed again (or not be added) in 4.x-dev.

Another way to fix the unignorable PHPStan errors would be PR #28 .

Add ReturnTypeWillChange attribute to  method where we will fix return types in 4,x-dev.
The attribute will be removed again in 4.x-dev.
@rdeutz
Copy link
Contributor

rdeutz commented Jul 12, 2025

fixed with #28

@rdeutz rdeutz closed this Jul 12, 2025
@richard67 richard67 reopened this Jul 13, 2025
@richard67
Copy link
Contributor Author

#28 had to be reverted, so I've reopened this one.

@Hackwar Hackwar merged commit 0f7829c into 3.x-dev Jul 13, 2025
23 checks passed
@richard67 richard67 deleted the 3.x-dev-phpstan-return-type-attribute branch July 13, 2025 09:46
@HLeithner
Copy link
Contributor

can you create documentation for this upcoming b/c break please?

@richard67
Copy link
Contributor Author

richard67 commented Jul 13, 2025

can you create documentation for this upcoming b/c break please?

@HLeithner Will be done soon. Do I assume right that the documentation would be for migration from framework v3 to v4? The changes (differences between 3.x-dev and 4.x-dev) can be seen here: 67f27ee

@richard67
Copy link
Contributor Author

@HLeithner P.S.: Additional question: Does it also need some deprecation comments in code in 3.x-dev?

@HLeithner
Copy link
Contributor

yes, because we want to change this in future version (4.0?)

@richard67
Copy link
Contributor Author

Would be good to have some example somewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants