File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -83,8 +83,7 @@ public static function fromClassName(string $className): self
8383 private static function extractPropsFromReflectionClass (\ReflectionClass $ reflectionClass ): array
8484 {
8585 $ parentReflectionClass = $ reflectionClass ->getParentClass ();
86- if (
87- $ parentReflectionClass instanceof \ReflectionClass
86+ if ($ parentReflectionClass instanceof \ReflectionClass
8887 && IsComponent::isSatisfiedByReflectionClass ($ parentReflectionClass )
8988 ) {
9089 $ props = self ::extractPropsFromReflectionClass ($ parentReflectionClass );
Original file line number Diff line number Diff line change @@ -61,8 +61,7 @@ protected function prepare(array $context): array
6161 unset($ props [self ::OBJECT_NAME ]);
6262 $ presentationObjectProps = Props::fromClassName (ComponentName::fromFusionPath ($ this ->path )->getFullyQualifiedClassName ());
6363 foreach ($ presentationObjectProps as $ propName => $ propType ) {
64- if (
65- isset ($ props [$ propName ])
64+ if (isset ($ props [$ propName ])
6665 && (is_string ($ props [$ propName ]) || is_int ($ props [$ propName ]))
6766 && $ propType instanceof EnumPropType
6867 ) {
You can’t perform that action at this time.
0 commit comments