| 1 |
<?php |
| 2 |
|
| 3 |
class Symfony_Filesystem_Exception_FileNotFoundException extends Symfony_Filesystem_Exception_IOException |
| 4 |
{ |
| 5 |
/** |
| 6 |
* Note: Type hint removed from $previous parameter to fix PHP 8.4+ deprecation warning |
| 7 |
* about implicitly nullable parameters while maintaining backward compatibility with PHP 5.5+. |
| 8 |
* The nullable type syntax (?Exception) is not supported in PHP 5.5-7.0. |
| 9 |
*/ |
| 10 |
public function __construct($message = null, $code = 0, $previous = null, $path = null) |
| 11 |
{ |
| 12 |
if (null === $message) { |
| 13 |
if (null === $path) { |
| 14 |
$message = 'File could not be found.'; |
| 15 |
} else { |
| 16 |
$message = sprintf('File "%s" could not be found.', $path); |
| 17 |
} |
| 18 |
} |
| 19 |
|
| 20 |
parent::__construct($message, $code, $previous, $path); |
| 21 |
} |
| 22 |
} |
| 23 |
|