| 1 | <?php |
||
| 7 | class Local |
||
| 8 | { |
||
| 9 | private function parseCertificate(string $certificateString): SslCertificate |
||
| 31 | |||
| 32 | public static function certificateAsString(string $certificateString): SslCertificate |
||
| 36 | |||
| 37 | private function parseCertificateFile(string $path) |
||
| 54 | |||
| 55 | public static function certificateFromLocalPath(string $path): SslCertificate |
||
| 59 | } |
||
| 60 |
This check marks implicit conversions of arrays to boolean values in a comparison. While in PHP an empty array is considered to be equal (but not identical) to false, this is not always apparent.
Consider making the comparison explicit by using
empty(..)or! empty(...)instead.