Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kukulich
Copy link
Collaborator

No description provided.

@kukulich kukulich added the dependencies Pull requests that update a dependency file label Jan 21, 2026
@Ocramius
Copy link
Member

5 tests triggered 1 PHP deprecation:

1) /home/runner/work/BetterReflection/BetterReflection/src/SourceLocator/SourceStubber/PhpStormStubs/CachingVisitor.php:217
Constant E_STRICT is deprecated since 8.4, the error level was removed

That seems like our problem 🤔

@kukulich
Copy link
Collaborator Author

kukulich commented Jan 23, 2026

PhpStormStubsSourceStubber reads the constant value if the constant is available. Some constans change their value in different environment or different PHP versions, so stubs are not able to have the right constant value.

https://github.com/Roave/BetterReflection/blob/6.69.x/src/SourceLocator/SourceStubber/PhpStormStubs/CachingVisitor.php#L217

The error is silenced by @ but PHPUnit modifies error reporting. That's why the deprecated warnings were disabled in PHPUnit.

I don't know what's the best and nice solution how to solve it... :(

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

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants