PHP 8.4 compatibility

This commit is contained in:
FreeScout
2025-02-14 21:14:13 -08:00
parent f51651e45a
commit d77fa741c8
2 changed files with 38 additions and 0 deletions

View File

@@ -437,6 +437,7 @@
"vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"vendor/league/flysystem/src/Filesystem.php",
"vendor/league/flysystem/src/FilesystemInterface.php",
"vendor/league/flysystem/src/FileNotFoundException.php",
"vendor/mews/purifier/src/Purifier.php",
"vendor/mtdowling/cron-expression/src/Cron/CronExpression.php",
"vendor/laravel/framework/src/Illuminate/Mail/Mailer.php",

View File

@@ -0,0 +1,37 @@
<?php
namespace League\Flysystem;
use Exception as BaseException;
class FileNotFoundException extends Exception
{
/**
* @var string
*/
protected $path;
/**
* Constructor.
*
* @param string $path
* @param int $code
* @param \Exception $previous
*/
public function __construct($path, $code = 0, ?BaseException $previous = null)
{
$this->path = $path;
parent::__construct('File not found at path: ' . $this->getPath(), $code, $previous);
}
/**
* Get the path which was not found.
*
* @return string
*/
public function getPath()
{
return $this->path;
}
}