mirror of
https://github.com/danog/MadelineProto.git
synced 2025-01-22 15:51:15 +01:00
Skip non-existant classes
This commit is contained in:
parent
45e2acfd19
commit
770afc083e
@ -28,7 +28,6 @@ if ($phar = \getenv('ACTIONS_PHAR')) {
|
|||||||
} else {
|
} else {
|
||||||
require_once 'vendor/autoload.php';
|
require_once 'vendor/autoload.php';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($loader) {
|
if ($loader) {
|
||||||
foreach ($loader->getClassMap() as $class => $file) {
|
foreach ($loader->getClassMap() as $class => $file) {
|
||||||
if (\in_array($class, [
|
if (\in_array($class, [
|
||||||
@ -42,14 +41,15 @@ if ($loader) {
|
|||||||
'Phabel\\Amp\\Parallel\\Sync\\Internal\\ParcelStorage',
|
'Phabel\\Amp\\Parallel\\Sync\\Internal\\ParcelStorage',
|
||||||
'Phabel\\Amp\\Parallel\\Context\\Internal\\Thread',
|
'Phabel\\Amp\\Parallel\\Context\\Internal\\Thread',
|
||||||
'Phabel\\Monolog\\Test\\TestCase',
|
'Phabel\\Monolog\\Test\\TestCase',
|
||||||
|
'Phabel\\Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface',
|
||||||
|
'Phabel\\Symfony\\Component\\String\\Slugger\\AsciiSlugger',
|
||||||
'Phabel\\Composer\\Plugin'
|
'Phabel\\Composer\\Plugin'
|
||||||
])) {
|
])) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (\str_ends_with($class, 'Test') || \class_exists($class) || \interface_exists($class)) {
|
if (\str_starts_with($class, 'Phabel\\Symfony\\Component\\Console') || \str_ends_with($class, 'Test') || \class_exists($class) || \interface_exists($class)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
//echo "Requiring $class => $file\n";
|
|
||||||
require_once($file);
|
require_once($file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@ $tag = \trim(\shell_exec("git tag --points-at HEAD"));
|
|||||||
|
|
||||||
echo "Waiting for commit $commit on branch $branch (tag $tag)...".PHP_EOL;
|
echo "Waiting for commit $commit on branch $branch (tag $tag)...".PHP_EOL;
|
||||||
|
|
||||||
if (substr($tag, -5) === '.9999' || substr($tag, -5) === '.9998') {
|
if (\substr($tag, -5) === '.9999' || \substr($tag, -5) === '.9998') {
|
||||||
die;
|
die;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user