Updated Rector to commit e72fb255dcafb1b7e0481b1359d948692e1ff3e2

e72fb255dc Bump to reactphp/event-loop ^1.5 (#5246)
This commit is contained in:
Tomas Votruba 2023-11-13 15:06:37 +00:00
parent caba0e294a
commit 340a1832bb
10 changed files with 38 additions and 26 deletions

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '0.18.7';
public const PACKAGE_VERSION = 'e72fb255dcafb1b7e0481b1359d948692e1ff3e2';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-11-12 12:43:22';
public const RELEASE_DATE = '2023-11-13 22:04:21';
/**
* @var int
*/

2
vendor/autoload.php vendored
View File

@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInit18ad0e678efbbb500e116f7c54cccdd4::getLoader();
return ComposerAutoloaderInita55c41c7fa52abd86138c6f32df1d185::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit18ad0e678efbbb500e116f7c54cccdd4
class ComposerAutoloaderInita55c41c7fa52abd86138c6f32df1d185
{
private static $loader;
@ -22,17 +22,17 @@ class ComposerAutoloaderInit18ad0e678efbbb500e116f7c54cccdd4
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit18ad0e678efbbb500e116f7c54cccdd4', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInita55c41c7fa52abd86138c6f32df1d185', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit18ad0e678efbbb500e116f7c54cccdd4', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInita55c41c7fa52abd86138c6f32df1d185', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit18ad0e678efbbb500e116f7c54cccdd4::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInita55c41c7fa52abd86138c6f32df1d185::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$filesToLoad = \Composer\Autoload\ComposerStaticInit18ad0e678efbbb500e116f7c54cccdd4::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInita55c41c7fa52abd86138c6f32df1d185::$files;
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload;
class ComposerStaticInit18ad0e678efbbb500e116f7c54cccdd4
class ComposerStaticInita55c41c7fa52abd86138c6f32df1d185
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@ -2606,9 +2606,9 @@ class ComposerStaticInit18ad0e678efbbb500e116f7c54cccdd4
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit18ad0e678efbbb500e116f7c54cccdd4::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit18ad0e678efbbb500e116f7c54cccdd4::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit18ad0e678efbbb500e116f7c54cccdd4::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInita55c41c7fa52abd86138c6f32df1d185::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInita55c41c7fa52abd86138c6f32df1d185::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInita55c41c7fa52abd86138c6f32df1d185::$classMap;
}, null, ClassLoader::class);
}

View File

@ -1307,17 +1307,17 @@
},
{
"name": "react\/event-loop",
"version": "v1.4.0",
"version_normalized": "1.4.0.0",
"version": "v1.5.0",
"version_normalized": "1.5.0.0",
"source": {
"type": "git",
"url": "https:\/\/github.com\/reactphp\/event-loop.git",
"reference": "6e7e587714fff7a83dcc7025aee42ab3b265ae05"
"reference": "bbe0bd8c51ffc05ee43f1729087ed3bdf7d53354"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/reactphp\/event-loop\/zipball\/6e7e587714fff7a83dcc7025aee42ab3b265ae05",
"reference": "6e7e587714fff7a83dcc7025aee42ab3b265ae05",
"url": "https:\/\/api.github.com\/repos\/reactphp\/event-loop\/zipball\/bbe0bd8c51ffc05ee43f1729087ed3bdf7d53354",
"reference": "bbe0bd8c51ffc05ee43f1729087ed3bdf7d53354",
"shasum": ""
},
"require": {
@ -1329,7 +1329,7 @@
"suggest": {
"ext-pcntl": "For signal handling support when using the StreamSelectLoop"
},
"time": "2023-05-05T10:11:24+00:00",
"time": "2023-11-13T13:48:05+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
@ -1370,7 +1370,7 @@
],
"support": {
"issues": "https:\/\/github.com\/reactphp\/event-loop\/issues",
"source": "https:\/\/github.com\/reactphp\/event-loop\/tree\/v1.4.0"
"source": "https:\/\/github.com\/reactphp\/event-loop\/tree\/v1.5.0"
},
"funding": [
{

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,16 @@
# Changelog
## 1.5.0 (2023-11-13)
* Feature: Improve performance by using `spl_object_id()` on PHP 7.2+.
(#267 by @samsonasik)
* Feature: Full PHP 8.3 compatibility.
(#269 by @clue)
* Update tests for `ext-uv` on PHP 8+ and legacy PHP.
(#270 by @clue and #268 by @SimonFrings)
## 1.4.0 (2023-05-05)
* Feature: Improve performance of `Loop` by avoiding unneeded method calls.

View File

@ -419,7 +419,7 @@ This loop uses the [`uv` PECL extension](https://pecl.php.net/package/uv),
that provides an interface to `libuv` library.
`libuv` itself supports a number of system-specific backends (epoll, kqueue).
This loop is known to work with PHP 7.x.
This loop is known to work with PHP 7+.
#### ~~ExtLibeventLoop~~
@ -889,7 +889,7 @@ This project follows [SemVer](https://semver.org/).
This will install the latest supported version:
```bash
composer require react/event-loop:^1.4
composer require react/event-loop:^1.5
```
See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.

View File

@ -12,7 +12,7 @@ use SplObjectStorage;
* that provides an interface to `libuv` library.
* `libuv` itself supports a number of system-specific backends (epoll, kqueue).
*
* This loop is known to work with PHP 7.x.
* This loop is known to work with PHP 7+.
*
* @see https://github.com/bwoebi/php-uv
*/

View File

@ -33,18 +33,19 @@ final class Timers
}
public function add(TimerInterface $timer)
{
$id = \spl_object_hash($timer);
$id = \PHP_VERSION_ID < 70200 ? \spl_object_hash($timer) : \spl_object_id($timer);
$this->timers[$id] = $timer;
$this->schedule[$id] = $timer->getInterval() + $this->updateTime();
$this->sorted = \false;
}
public function contains(TimerInterface $timer)
{
return isset($this->timers[\spl_object_hash($timer)]);
$id = \PHP_VERSION_ID < 70200 ? \spl_object_hash($timer) : \spl_object_id($timer);
return isset($this->timers[$id]);
}
public function cancel(TimerInterface $timer)
{
$id = \spl_object_hash($timer);
$id = \PHP_VERSION_ID < 70200 ? \spl_object_hash($timer) : \spl_object_id($timer);
unset($this->timers[$id], $this->schedule[$id]);
}
public function getFirst()