Skip to content

Commit 329094b

Browse files
committed
Resolved static analysis checks
1 parent 014daba commit 329094b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Propel/Generator/Builder/Om/ObjectBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2627,7 +2627,7 @@ protected function getAccessValueStatement(Column $column): string
26272627
}
26282628

26292629
if ($column->isPhpBackedEnumType()) {
2630-
return "\$this->$columnName?->value";
2630+
return '$this->' . $columnName . '?->value';
26312631
}
26322632

26332633
return "\$this->$columnName";

src/Propel/Generator/Model/PropelTypes.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44

55
namespace Propel\Generator\Model;
66

7+
use BackedEnum;
78
use PDO;
89
use function in_array;
10+
use function is_subclass_of;
911
use function strtoupper;
1012

1113
/**
@@ -727,7 +729,7 @@ public static function isPhpObjectType(string $phpType): bool
727729
*/
728730
public static function isPhpBackedEnumType(string $phpType): bool
729731
{
730-
return is_subclass_of($phpType, \BackedEnum::class);
732+
return is_subclass_of($phpType, BackedEnum::class);
731733
}
732734

733735
/**

0 commit comments

Comments
 (0)