parent
61388a9bd1
commit
d34baca7dc
4 changed files with 39 additions and 2 deletions
@ -0,0 +1,17 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
class AssignedValueNullCheck |
||||||
|
{ |
||||||
|
public function check(): bool |
||||||
|
{ |
||||||
|
if (!is_null($error = error_get_last()) && $this->isFatal($error['type'])) { |
||||||
|
return true; |
||||||
|
} |
||||||
|
return false; |
||||||
|
} |
||||||
|
|
||||||
|
private function isFatal(int $type): bool |
||||||
|
{ |
||||||
|
return $type > 0; |
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue