Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Hotfix: PHP 7.4 compatibility #56

Merged
merged 7 commits into from
Dec 10, 2019

Conversation

waahhhh
Copy link
Contributor

@waahhhh waahhhh commented Dec 10, 2019

Provide a narrative description of what you are trying to accomplish:

  • Noticed deprecated messages on PHP 7.4:
[10-Dec-2019 04:18:49 UTC] PHP Deprecated:  Function ReflectionType::__toString() is deprecated in /var/www/html/vendor/zendframework/zend-di/src/Definition/Reflection/Parameter.php on line 65
[10-Dec-2019 04:18:49 UTC] PHP Stack trace:
[10-Dec-2019 04:18:49 UTC] PHP   1. {main}() /var/www/html/bin/di-generate-aot.php:0
[10-Dec-2019 04:18:49 UTC] PHP   2. Zend\Di\CodeGenerator\InjectorGenerator->generate() /var/www/html/bin/di-generate-aot.php:22
[10-Dec-2019 04:18:49 UTC] PHP   3. Zend\Di\CodeGenerator\InjectorGenerator->generateTypeFactory() /var/www/html/vendor/zendframework/zend-di/src/CodeGenerator/InjectorGenerator.php:196
[10-Dec-2019 04:18:49 UTC] PHP   4. Zend\Di\CodeGenerator\FactoryGenerator->generate() /var/www/html/vendor/zendframework/zend-di/src/CodeGenerator/InjectorGenerator.php:147
[10-Dec-2019 04:18:49 UTC] PHP   5. Zend\Di\Resolver\DependencyResolver->resolveParameters() /var/www/html/vendor/zendframework/zend-di/src/CodeGenerator/FactoryGenerator.php:176
[10-Dec-2019 04:18:49 UTC] PHP   6. Zend\Di\Definition\Reflection\Parameter->getType() /var/www/html/vendor/zendframework/zend-di/src/Resolver/DependencyResolver.php:285
  • On PHP 7.4 CodeSniffer outputs the messages:
Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/vendor/squizlabs/php_codesniffer/CodeSniffer.php on line 2028
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vendor/squizlabs/php_codesniffer/CodeSniffer/File.php on line 1766

But that will be resolved by: #47


  • Are you fixing a bug?

    • Detail how the bug is invoked currently.
    • Detail the original, incorrect behavior.
    • Detail the new, expected behavior.
    • Base your feature on the master branch, and submit against that branch.
    • Add a regression test that demonstrates the bug, and proves the fix.
    • Add a CHANGELOG.md entry for the fix.
  • Are you creating a new feature?

    • Why is the new feature needed? What purpose does it serve?
    • How will users use the new feature?
    • Base your feature on the develop branch, and submit against that branch.
    • Add only one feature per pull request; split multiple features over multiple pull requests
    • Add tests for the new feature.
    • Add documentation for the new feature.
    • Add a CHANGELOG.md entry for the new feature.
  • Is this related to quality assurance?

  • using error reporting on E_ALL for tests to
  • Is this related to documentation?

@michalbundyra
Copy link
Member

@waahhhh Thanks for your contribution.

We can't accept this PR as it is - it contains BC Break (bump PHP version, by us considered as BC Break and can be released only with new major version) and Bugfix for PHP 7.4 compatibility.

Please provide bugfix separately - PR to master, and then other PR with bumped PHP version to develop. Thanks!

@waahhhh
Copy link
Contributor Author

waahhhh commented Dec 10, 2019

Removed version bump and changed phpunit/phpunit version from 8.5 to 7.5.

@michalbundyra michalbundyra changed the title PHP 7.4 support Hotfix: PHP 7.4 compatibility Dec 10, 2019
@michalbundyra michalbundyra added this to the 3.1.2 milestone Dec 10, 2019
Add conflict with prophecy version prior to 1.9.0 for PHP 7.4 compatibility
It is not working for the lowest deps as we still have zend-stdlib v2
in allowed dependencies. It is not compatible with PHP 7.3+.
michalbundyra added a commit that referenced this pull request Dec 10, 2019
Hotfix: PHP 7.4 compatibility
@michalbundyra michalbundyra merged commit a7dc212 into zendframework:master Dec 10, 2019
@michalbundyra
Copy link
Member

Thanks, @waahhhh!

@tux-rampage
Copy link
Contributor

This PR does not pass static analysis. Why didn't this PR trigger a travis build?

@michalbundyra
Copy link
Member

@tux-rampage PR was to master, was merged as a hotfix.

@tux-rampage
Copy link
Contributor

I see, thanks

tux-rampage added a commit to tux-rampage/zend-di that referenced this pull request Dec 16, 2019
@tux-rampage tux-rampage mentioned this pull request Dec 16, 2019
1 task
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants