mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 19:04:52 +00:00
Reintroduce Webklex IMAP for ticket processing as PHP-IMAP is no longer being developed. This is optional for now and considered beta can be found in cron/ticket_email_parser.php
This commit is contained in:
19
plugins/vendor/symfony/polyfill-php85/LICENSE
vendored
Normal file
19
plugins/vendor/symfony/polyfill-php85/LICENSE
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
Copyright (c) 2025-present Fabien Potencier
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is furnished
|
||||
to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
50
plugins/vendor/symfony/polyfill-php85/Php85.php
vendored
Normal file
50
plugins/vendor/symfony/polyfill-php85/Php85.php
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Polyfill\Php85;
|
||||
|
||||
/**
|
||||
* @author Pierre Ambroise <pierre27.ambroise@gmail.com>
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
final class Php85
|
||||
{
|
||||
public static function get_error_handler(): ?callable
|
||||
{
|
||||
$handler = set_error_handler(null);
|
||||
restore_error_handler();
|
||||
|
||||
return $handler;
|
||||
}
|
||||
|
||||
public static function get_exception_handler(): ?callable
|
||||
{
|
||||
$handler = set_exception_handler(null);
|
||||
restore_exception_handler();
|
||||
|
||||
return $handler;
|
||||
}
|
||||
|
||||
public static function array_first(array $array)
|
||||
{
|
||||
foreach ($array as $value) {
|
||||
return $value;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public static function array_last(array $array)
|
||||
{
|
||||
return $array ? current(array_slice($array, -1)) : null;
|
||||
}
|
||||
}
|
||||
16
plugins/vendor/symfony/polyfill-php85/README.md
vendored
Normal file
16
plugins/vendor/symfony/polyfill-php85/README.md
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
Symfony Polyfill / Php85
|
||||
========================
|
||||
|
||||
This component provides features added to PHP 8.5 core:
|
||||
|
||||
- [`get_error_handler` and `get_exception_handler`](https://wiki.php.net/rfc/get-error-exception-handler)
|
||||
- [`NoDiscard`](https://wiki.php.net/rfc/marking_return_value_as_important)
|
||||
- [`array_first` and `array_last`](https://wiki.php.net/rfc/array_first_last)
|
||||
|
||||
More information can be found in the
|
||||
[main Polyfill README](https://github.com/symfony/polyfill/blob/main/README.md).
|
||||
|
||||
License
|
||||
=======
|
||||
|
||||
This library is released under the [MIT license](LICENSE).
|
||||
23
plugins/vendor/symfony/polyfill-php85/Resources/stubs/NoDiscard.php
vendored
Normal file
23
plugins/vendor/symfony/polyfill-php85/Resources/stubs/NoDiscard.php
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
if (\PHP_VERSION_ID < 80500) {
|
||||
#[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_FUNCTION)]
|
||||
final class NoDiscard
|
||||
{
|
||||
public ?string $message;
|
||||
|
||||
public function __construct(?string $message = null)
|
||||
{
|
||||
$this->message = $message;
|
||||
}
|
||||
}
|
||||
}
|
||||
32
plugins/vendor/symfony/polyfill-php85/bootstrap.php
vendored
Normal file
32
plugins/vendor/symfony/polyfill-php85/bootstrap.php
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
use Symfony\Polyfill\Php85 as p;
|
||||
|
||||
if (\PHP_VERSION_ID >= 80500) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!function_exists('get_error_handler')) {
|
||||
function get_error_handler(): ?callable { return p\Php85::get_error_handler(); }
|
||||
}
|
||||
|
||||
if (!function_exists('get_exception_handler')) {
|
||||
function get_exception_handler(): ?callable { return p\Php85::get_exception_handler(); }
|
||||
}
|
||||
|
||||
if (!function_exists('array_first')) {
|
||||
function array_first(array $array) { return p\Php85::array_first($array); }
|
||||
}
|
||||
|
||||
if (!function_exists('array_last')) {
|
||||
function array_last(array $array) { return p\Php85::array_last($array); }
|
||||
}
|
||||
33
plugins/vendor/symfony/polyfill-php85/composer.json
vendored
Normal file
33
plugins/vendor/symfony/polyfill-php85/composer.json
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"name": "symfony/polyfill-php85",
|
||||
"type": "library",
|
||||
"description": "Symfony polyfill backporting some PHP 8.5+ features to lower PHP versions",
|
||||
"keywords": ["polyfill", "shim", "compatibility", "portable"],
|
||||
"homepage": "https://symfony.com",
|
||||
"license": "MIT",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Nicolas Grekas",
|
||||
"email": "p@tchwork.com"
|
||||
},
|
||||
{
|
||||
"name": "Symfony Community",
|
||||
"homepage": "https://symfony.com/contributors"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=7.2"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": { "Symfony\\Polyfill\\Php85\\": "" },
|
||||
"files": [ "bootstrap.php" ],
|
||||
"classmap": [ "Resources/stubs" ]
|
||||
},
|
||||
"minimum-stability": "dev",
|
||||
"extra": {
|
||||
"thanks": {
|
||||
"name": "symfony/polyfill",
|
||||
"url": "https://github.com/symfony/polyfill"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user