mirror of
https://github.com/doctrine/reflection.git
synced 2026-03-24 16:52:07 +01:00
[PR #24] Add reflection typed no default property class #33
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/doctrine/reflection/pull/24
State: closed
Merged: Yes
Implementation for issue https://github.com/doctrine/reflection/issues/23
See discussion in https://github.com/doctrine/orm/pull/7857
As suggested by @beberlei, the
\Doctrine\Common\Reflection\TypedNoDefaultReflectionPropertyclass was introduced.It will be returned in
doctrine/persistencepackage class RuntimeReflectionService::getAccessibleProperty if the property is typed and has no default value. Something like this:Also updated phpunit config as suggested in the discussion in the same issue https://github.com/doctrine/reflection/issues/23.
This allows skipping tests containing php 7.4 specific syntax on builds with lesser php versions.
Also updated
travis-ci.ymlLint job to ignore such tests by phpstan analysis, if the php version is less than 7.4