Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[PropertyInfo] Support for the mixed type#38510

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:3.4fromderrabus:bugfix/property-info-mixed
Oct 11, 2020

Conversation

@derrabus
Copy link
Member

QA
Branch?3.4
Bug fix?yes
New feature?no
Deprecations?no
TicketsN/A
LicenseMIT
Doc PRN/A

In php 8,mixed isa valid type declaration.

Running the following script on php 8…

use Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor;class MyClass{    public function getA(): mixed {}}$reflection = new ReflectionExtractor();$reflection->getTypes(MyClass::class, 'a');

… causes a fatal error:

PHP Fatal error:  Uncaught InvalidArgumentException: "mixed" is not a valid PHP type. in /path/to/symfony/src/Symfony/Component/PropertyInfo/Type.php:70

This PR should fix the issue.

@fabpot
Copy link
Member

Thank you@derrabus.

@fabpotfabpot merged commit7173d6c intosymfony:3.4Oct 11, 2020
@derrabusderrabus deleted the bugfix/property-info-mixed branchOctober 11, 2020 10:25
@fabpotfabpot mentioned this pull requestOct 14, 2020
This was referencedOct 28, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@dunglasdunglasdunglas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@derrabus@fabpot@dunglas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp