Skip to content

Commit 0dcf6a9

Browse files
authored
Merge pull request #7 from PackageFactory/bugfix/preventIssuesFromFlowProxyClasses
TASK: Prevent problems caused by Flow Proxy classres
2 parents e8df2a2 + 5166f2c commit 0dcf6a9

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Classes/Domain/ValueObject/HslaColor.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
namespace PackageFactory\ColorHelper\Domain\ValueObject;
66

7+
use Neos\Flow\Annotations as Flow;
8+
9+
/**
10+
* @Flow\Proxy(false)
11+
*/
712
class HslaColor extends AbstractColor implements ColorInterface
813
{
914
/**

Classes/Domain/ValueObject/RgbaColor.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@
44

55
namespace PackageFactory\ColorHelper\Domain\ValueObject;
66

7-
use mysql_xdevapi\Exception;
7+
use Neos\Flow\Annotations as Flow;
88

9+
/**
10+
* @Flow\Proxy(false)
11+
*/
912
class RgbaColor extends AbstractColor implements ColorInterface
1013
{
1114
/**
@@ -117,7 +120,7 @@ public function asHsla(): HslaColor
117120
case $g: $h = ($b - $r) / $d + 2; break;
118121
case $b: $h = ($r - $g) / $d + 4; break;
119122
default:
120-
throw new Exception('this should never happen');
123+
throw new \Exception('this should never happen');
121124
}
122125

123126
$h /= 6;

0 commit comments

Comments
 (0)