Fix 'Cannot access parent:: when current class scope has no parent' error#40774
Fix 'Cannot access parent:: when current class scope has no parent' error#40774Androbin wants to merge 1 commit intosymfony:4.4from Androbin:parent
Conversation
|
Hey! I see that this is your first PR. That is great! Welcome! Symfony has a contribution guide which I suggest you to read. In short:
Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change. When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor! I am going to sit back now and wait for the reviews. Cheers! Carsonbot |
|
Hey! But you have made this PR towards a branch that is not maintained anymore. :/ Cheers! Carsonbot |
| } | ||
|
|
||
| if (!$p->isDefaultValueConstant() || \defined($p->getDefaultValueConstantName())) { | ||
| $defaultValueConstantName = preg_replace('/^parent::/', 'pimax\Messages\Message::', $p->getDefaultValueConstantName()); |
There was a problem hiding this comment.
Harcoding "pimax" in the source code of Symfony doesn't make sense.
Maybe you can provide us with a reproducer? Or better, a failing test case?
There was a problem hiding this comment.
Isn't that the name of the type of $m?
There was a problem hiding this comment.
I'm sorry I don't understand, there is no $m on this line.
|
@nicolas-grekas Minimal reproducing test project: test-project.zip, only need to run |
Uh oh!
There was an error while loading. Please reload this page.