Skip to content

Commit

Permalink
Updated Rector to commit e72fb255dcafb1b7e0481b1359d948692e1ff3e2
Browse files Browse the repository at this point in the history
rectorphp/rector-src@e72fb25 Bump to reactphp/event-loop ^1.5 (#5246)
  • Loading branch information
TomasVotruba committed Nov 13, 2023
1 parent caba0e2 commit 340a183
Show file tree
Hide file tree
Showing 10 changed files with 38 additions and 26 deletions.
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInit18ad0e678efbbb500e116f7c54cccdd4::getLoader();
return ComposerAutoloaderInita55c41c7fa52abd86138c6f32df1d185::getLoader();
10 changes: 5 additions & 5 deletions vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInit18ad0e678efbbb500e116f7c54cccdd4
class ComposerAutoloaderInita55c41c7fa52abd86138c6f32df1d185
{
private static $loader;

Expand All @@ -22,17 +22,17 @@ public static function getLoader()
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;
Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Composer\Autoload;

class ComposerStaticInit18ad0e678efbbb500e116f7c54cccdd4
class ComposerStaticInita55c41c7fa52abd86138c6f32df1d185
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
Expand Down Expand Up @@ -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);
}
Expand Down
14 changes: 7 additions & 7 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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": {
Expand Down Expand Up @@ -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": [
{
Expand Down
2 changes: 1 addition & 1 deletion vendor/composer/installed.php

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions vendor/react/event-loop/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions vendor/react/event-loop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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~~

Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion vendor/react/event-loop/src/ExtUvLoop.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* 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
*/
Expand Down
7 changes: 4 additions & 3 deletions vendor/react/event-loop/src/Timer/Timers.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,19 @@ public function getTime()
}
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()
Expand Down

0 comments on commit 340a183

Please sign in to comment.