| Total Complexity | 4 |
| Total Lines | 13 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 16 | class FcharsLogicValidator implements ValidationInterface |
||
| 17 | { |
||
| 18 | private SchemaAttributeInterface $property; |
||
| 19 | |||
| 20 | 188 | public function __construct(SchemaAttributeInterface $property) |
|
| 21 | { |
||
| 22 | 188 | $this->property = $property; |
|
| 23 | 188 | } |
|
| 24 | |||
| 25 | 188 | public function validate(): void |
|
| 29 | } |
||
| 30 | 183 | } |
|
| 32 |
In PHP, under loose comparison (like
==, or!=, orswitchconditions), values of different types might be equal.For
integervalues, zero is a special case, in particular the following results might be unexpected: