Vendor packages updated

This commit is contained in:
2026-07-07 22:49:30 +02:00
parent 30269316b2
commit 97963b34aa
1239 changed files with 216109 additions and 81192 deletions

View File

@@ -0,0 +1,11 @@
<?php
namespace Safe\Exceptions;
class DatetimeException extends \ErrorException implements SafeExceptionInterface
{
public static function createFromPhpError(): self
{
$error = error_get_last();
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}