We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a76c24 commit 5f0082bCopy full SHA for 5f0082b
1 file changed
Classes/Domain/Enum/EnumLabel.php
@@ -1,9 +1,5 @@
1
<?php
2
3
-/*
4
- * This file is part of the PackageFactory.AtomicFusion.PresentationObjects package.
5
- */
6
-
7
declare(strict_types=1);
8
9
namespace PackageFactory\AtomicFusion\PresentationObjects\Domain\Enum;
@@ -26,7 +22,7 @@ public static function fromEnumName(string $enumName): self
26
22
list($packageNamespace, $componentName) = explode('\Presentation\\', $enumName);
27
23
$pivot = \mb_strrpos($componentName, '\\') ?: null;
28
24
$componentNamespace = \mb_substr($componentName, 0, $pivot);
29
- $enumShort = lcfirst(\mb_substr($componentName, $pivot + 1));
25
+ $enumShort = lcfirst(\mb_substr($componentName, (is_int($pivot) ? $pivot + 1 : 0)));
30
31
return new self(
32
$enumShort . '.',
0 commit comments