You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class Bar
{
/**
* @Bos\Normalize()
*/
public function getName(): string
{
return 'john wick';
}
}
class Foo extends Bar
{
/**
* PHPDoc without @Bos\Normalize annotation
*/
public function getName(): string
{
return 'John Wick';
}
}
When normalizing getName() from Foo, nothing will output.
We should make an annotation that indicates that the parent Normalize() annotations should be inherited.
Example:
class Foo extends Bar
{
/**
* @Bos\InheritNormalize()
*/
public function getName(): string
{
return 'John Wick';
}
}
The text was updated successfully, but these errors were encountered:
For now, just add the correct normalize options to the child properties or methods.
This would need refactoring. If you have a valid and clear real-life use-case I may put more prio on this.
When normalizing
getName()
fromFoo
, nothing will output.We should make an annotation that indicates that the parent
Normalize()
annotations should be inherited.Example:
The text was updated successfully, but these errors were encountered: