Skip to content

Commit b53a2ae

Browse files
committed
Updated ECS to commit 0e449cf747d61a63482923772250f6817a41edce
1 parent 1dad965 commit b53a2ae

595 files changed

Lines changed: 25036 additions & 4431 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/Application/Version/StaticVersionResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ final class StaticVersionResolver
1515
* @api
1616
* @var string
1717
*/
18-
public const PACKAGE_VERSION = '4ceffb16a07f40f0d107ad4e4a6e230b1e13dea3';
18+
public const PACKAGE_VERSION = '0e449cf747d61a63482923772250f6817a41edce';
1919
/**
2020
* @api
2121
* @var string
2222
*/
23-
public const RELEASE_DATE = '2026-06-02 21:27:45';
23+
public const RELEASE_DATE = '2026-06-09 22:25:56';
2424
/**
2525
* @var int
2626
*/

src/Configuration/ConfigInitializer.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,14 @@ public function __construct(FileProcessorCollector $fileProcessorCollector, Symf
3838
public function areSomeCheckersRegistered(): bool
3939
{
4040
$fileProcessors = $this->fileProcessorCollector->getFileProcessors();
41+
$found = \false;
4142
foreach ($fileProcessors as $fileProcessor) {
42-
if ($fileProcessor->getCheckers()) {
43-
return \true;
43+
if ($fileProcessor->getCheckers() !== []) {
44+
$found = \true;
45+
break;
4446
}
4547
}
46-
return \false;
48+
return $found;
4749
}
4850
public function createConfig(string $projectDirectory): void
4951
{

src/Skipper/Matcher/FileInfoMatcher.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,14 @@ public function __construct(FnMatchPathNormalizer $fnMatchPathNormalizer, Fnmatc
3636
*/
3737
public function doesFileInfoMatchPatterns($fileInfo, array $filePatterns): bool
3838
{
39+
$found = \false;
3940
foreach ($filePatterns as $filePattern) {
4041
if ($this->doesFileInfoMatchPattern($fileInfo, $filePattern)) {
41-
return \true;
42+
$found = \true;
43+
break;
4244
}
4345
}
44-
return \false;
46+
return $found;
4547
}
4648
/**
4749
* Supports both relative and absolute $file path. They differ for PHP-CS-Fixer and PHP_CodeSniffer.

vendor/autoload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@
1919

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

22-
return ComposerAutoloaderInit072d765d789d7f9b063be295bb31f369::getLoader();
22+
return ComposerAutoloaderInit2ec3346e2cc47494bb5cca6fc17b3c34::getLoader();

vendor/bin/class-leak

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
#!/usr/bin/env php
2+
<?php
3+
/**
4+
* Proxy PHP file generated by Composer
5+
*
6+
* This file includes the referenced bin path (../tomasvotruba/class-leak/bin/class-leak)
7+
* using a stream wrapper to prevent the shebang from being output on PHP<8
8+
*
9+
* @generated
10+
*/
11+
namespace ECSPrefix202606\Composer;
12+
13+
$GLOBALS['_composer_bin_dir'] = __DIR__;
14+
$GLOBALS['_composer_autoload_path'] = __DIR__ . '/..' . '/autoload.php';
15+
if (\PHP_VERSION_ID < 80000) {
16+
if (!class_exists('ECSPrefix202606\Composer\BinProxyWrapper')) {
17+
/**
18+
* @internal
19+
*/
20+
final class BinProxyWrapper
21+
{
22+
private $handle;
23+
private $position;
24+
private $realpath;
25+
public function stream_open($path, $mode, $options, &$opened_path)
26+
{
27+
// get rid of phpvfscomposer:// prefix for __FILE__ & __DIR__ resolution
28+
$opened_path = substr($path, 17);
29+
$this->realpath = realpath($opened_path) ?: $opened_path;
30+
$opened_path = $this->realpath;
31+
$this->handle = fopen($this->realpath, $mode);
32+
$this->position = 0;
33+
return (bool) $this->handle;
34+
}
35+
public function stream_read($count)
36+
{
37+
$data = fread($this->handle, $count);
38+
if ($this->position === 0) {
39+
$data = preg_replace('{^#!.*\r?\n}', '', $data);
40+
}
41+
$this->position += strlen($data);
42+
return $data;
43+
}
44+
public function stream_cast($castAs)
45+
{
46+
return $this->handle;
47+
}
48+
public function stream_close()
49+
{
50+
fclose($this->handle);
51+
}
52+
public function stream_lock($operation)
53+
{
54+
return $operation ? flock($this->handle, $operation) : \true;
55+
}
56+
public function stream_seek($offset, $whence)
57+
{
58+
if (0 === fseek($this->handle, $offset, $whence)) {
59+
$this->position = ftell($this->handle);
60+
return \true;
61+
}
62+
return \false;
63+
}
64+
public function stream_tell()
65+
{
66+
return $this->position;
67+
}
68+
public function stream_eof()
69+
{
70+
return feof($this->handle);
71+
}
72+
public function stream_stat()
73+
{
74+
return array();
75+
}
76+
public function stream_set_option($option, $arg1, $arg2)
77+
{
78+
return \true;
79+
}
80+
public function url_stat($path, $flags)
81+
{
82+
$path = substr($path, 17);
83+
if (file_exists($path)) {
84+
return stat($path);
85+
}
86+
return \false;
87+
}
88+
}
89+
}
90+
if (function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), \true) || function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'ECSPrefix202606\Composer\BinProxyWrapper')) {
91+
return include "phpvfscomposer://" . __DIR__ . '/..' . '/tomasvotruba/class-leak/bin/class-leak';
92+
}
93+
}
94+
return include __DIR__ . '/..' . '/tomasvotruba/class-leak/bin/class-leak';

vendor/bin/class-leak.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env php
2+
<?php
3+
/**
4+
* Proxy PHP file generated by Composer
5+
*
6+
* This file includes the referenced bin path (../tomasvotruba/class-leak/bin/class-leak.php)
7+
*
8+
* @generated
9+
*/
10+
namespace ECSPrefix202606\Composer;
11+
12+
$GLOBALS['_composer_bin_dir'] = __DIR__;
13+
$GLOBALS['_composer_autoload_path'] = __DIR__ . '/..' . '/autoload.php';
14+
return include __DIR__ . '/..' . '/tomasvotruba/class-leak/bin/class-leak.php';

vendor/bin/php-parse

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
#!/usr/bin/env php
2+
<?php
3+
/**
4+
* Proxy PHP file generated by Composer
5+
*
6+
* This file includes the referenced bin path (../nikic/php-parser/bin/php-parse)
7+
* using a stream wrapper to prevent the shebang from being output on PHP<8
8+
*
9+
* @generated
10+
*/
11+
namespace ECSPrefix202606\Composer;
12+
13+
$GLOBALS['_composer_bin_dir'] = __DIR__;
14+
$GLOBALS['_composer_autoload_path'] = __DIR__ . '/..' . '/autoload.php';
15+
if (\PHP_VERSION_ID < 80000) {
16+
if (!class_exists('ECSPrefix202606\Composer\BinProxyWrapper')) {
17+
/**
18+
* @internal
19+
*/
20+
final class BinProxyWrapper
21+
{
22+
private $handle;
23+
private $position;
24+
private $realpath;
25+
public function stream_open($path, $mode, $options, &$opened_path)
26+
{
27+
// get rid of phpvfscomposer:// prefix for __FILE__ & __DIR__ resolution
28+
$opened_path = substr($path, 17);
29+
$this->realpath = realpath($opened_path) ?: $opened_path;
30+
$opened_path = $this->realpath;
31+
$this->handle = fopen($this->realpath, $mode);
32+
$this->position = 0;
33+
return (bool) $this->handle;
34+
}
35+
public function stream_read($count)
36+
{
37+
$data = fread($this->handle, $count);
38+
if ($this->position === 0) {
39+
$data = preg_replace('{^#!.*\r?\n}', '', $data);
40+
}
41+
$this->position += strlen($data);
42+
return $data;
43+
}
44+
public function stream_cast($castAs)
45+
{
46+
return $this->handle;
47+
}
48+
public function stream_close()
49+
{
50+
fclose($this->handle);
51+
}
52+
public function stream_lock($operation)
53+
{
54+
return $operation ? flock($this->handle, $operation) : \true;
55+
}
56+
public function stream_seek($offset, $whence)
57+
{
58+
if (0 === fseek($this->handle, $offset, $whence)) {
59+
$this->position = ftell($this->handle);
60+
return \true;
61+
}
62+
return \false;
63+
}
64+
public function stream_tell()
65+
{
66+
return $this->position;
67+
}
68+
public function stream_eof()
69+
{
70+
return feof($this->handle);
71+
}
72+
public function stream_stat()
73+
{
74+
return array();
75+
}
76+
public function stream_set_option($option, $arg1, $arg2)
77+
{
78+
return \true;
79+
}
80+
public function url_stat($path, $flags)
81+
{
82+
$path = substr($path, 17);
83+
if (file_exists($path)) {
84+
return stat($path);
85+
}
86+
return \false;
87+
}
88+
}
89+
}
90+
if (function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), \true) || function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'ECSPrefix202606\Composer\BinProxyWrapper')) {
91+
return include "phpvfscomposer://" . __DIR__ . '/..' . '/nikic/php-parser/bin/php-parse';
92+
}
93+
}
94+
return include __DIR__ . '/..' . '/nikic/php-parser/bin/php-parse';

0 commit comments

Comments
 (0)