Skip to content

Commit

Permalink
Updated Monorepo Builder to commit e8cd20a909af2feeb0cc37614c081363c2…
Browse files Browse the repository at this point in the history
…70184e

deprecated-packages/symplify@e8cd20a [PackageBuilder] Added type-safe -methods (#3860)
  • Loading branch information
actions-user committed Dec 30, 2021
1 parent 237f986 commit 979b258
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 17 deletions.
2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

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

return ComposerAutoloaderInit00b87a218c51f8b202ae0eeeaf92623f::getLoader();
return ComposerAutoloaderInitbf692413867da6f0672847b77977386d::getLoader();
14 changes: 7 additions & 7 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 ComposerAutoloaderInit00b87a218c51f8b202ae0eeeaf92623f
class ComposerAutoloaderInitbf692413867da6f0672847b77977386d
{
private static $loader;

Expand All @@ -22,15 +22,15 @@ public static function getLoader()
return self::$loader;
}

spl_autoload_register(array('ComposerAutoloaderInit00b87a218c51f8b202ae0eeeaf92623f', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInitbf692413867da6f0672847b77977386d', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
spl_autoload_unregister(array('ComposerAutoloaderInit00b87a218c51f8b202ae0eeeaf92623f', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInitbf692413867da6f0672847b77977386d', 'loadClassLoader'));

$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
if ($useStaticLoader) {
require __DIR__ . '/autoload_static.php';

call_user_func(\Composer\Autoload\ComposerStaticInit00b87a218c51f8b202ae0eeeaf92623f::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInitbf692413867da6f0672847b77977386d::getInitializer($loader));
} else {
$classMap = require __DIR__ . '/autoload_classmap.php';
if ($classMap) {
Expand All @@ -42,12 +42,12 @@ public static function getLoader()
$loader->register(true);

if ($useStaticLoader) {
$includeFiles = Composer\Autoload\ComposerStaticInit00b87a218c51f8b202ae0eeeaf92623f::$files;
$includeFiles = Composer\Autoload\ComposerStaticInitbf692413867da6f0672847b77977386d::$files;
} else {
$includeFiles = require __DIR__ . '/autoload_files.php';
}
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequire00b87a218c51f8b202ae0eeeaf92623f($fileIdentifier, $file);
composerRequirebf692413867da6f0672847b77977386d($fileIdentifier, $file);
}

return $loader;
Expand All @@ -59,7 +59,7 @@ public static function getLoader()
* @param string $file
* @return void
*/
function composerRequire00b87a218c51f8b202ae0eeeaf92623f($fileIdentifier, $file)
function composerRequirebf692413867da6f0672847b77977386d($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 ComposerStaticInit00b87a218c51f8b202ae0eeeaf92623f
class ComposerStaticInitbf692413867da6f0672847b77977386d
{
public static $files = array (
'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
Expand Down Expand Up @@ -852,9 +852,9 @@ class ComposerStaticInit00b87a218c51f8b202ae0eeeaf92623f
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit00b87a218c51f8b202ae0eeeaf92623f::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit00b87a218c51f8b202ae0eeeaf92623f::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit00b87a218c51f8b202ae0eeeaf92623f::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInitbf692413867da6f0672847b77977386d::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitbf692413867da6f0672847b77977386d::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitbf692413867da6f0672847b77977386d::$classMap;

}, null, ClassLoader::class);
}
Expand Down
10 changes: 5 additions & 5 deletions vendor/scoper-autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

// Aliases for the whitelisted classes. For more information see:
// https://github.com/humbug/php-scoper/blob/master/README.md#class-whitelisting
if (!class_exists('ComposerAutoloaderInit00b87a218c51f8b202ae0eeeaf92623f', false) && !interface_exists('ComposerAutoloaderInit00b87a218c51f8b202ae0eeeaf92623f', false) && !trait_exists('ComposerAutoloaderInit00b87a218c51f8b202ae0eeeaf92623f', false)) {
spl_autoload_call('MonorepoBuilder20211230\ComposerAutoloaderInit00b87a218c51f8b202ae0eeeaf92623f');
if (!class_exists('ComposerAutoloaderInitbf692413867da6f0672847b77977386d', false) && !interface_exists('ComposerAutoloaderInitbf692413867da6f0672847b77977386d', false) && !trait_exists('ComposerAutoloaderInitbf692413867da6f0672847b77977386d', false)) {
spl_autoload_call('MonorepoBuilder20211230\ComposerAutoloaderInitbf692413867da6f0672847b77977386d');
}
if (!class_exists('Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator', false) && !interface_exists('Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator', false) && !trait_exists('Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator', false)) {
spl_autoload_call('MonorepoBuilder20211230\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator');
Expand All @@ -29,9 +29,9 @@ function resolveConfigFile() {
return \MonorepoBuilder20211230\resolveConfigFile(...func_get_args());
}
}
if (!function_exists('composerRequire00b87a218c51f8b202ae0eeeaf92623f')) {
function composerRequire00b87a218c51f8b202ae0eeeaf92623f() {
return \MonorepoBuilder20211230\composerRequire00b87a218c51f8b202ae0eeeaf92623f(...func_get_args());
if (!function_exists('composerRequirebf692413867da6f0672847b77977386d')) {
function composerRequirebf692413867da6f0672847b77977386d() {
return \MonorepoBuilder20211230\composerRequirebf692413867da6f0672847b77977386d(...func_get_args());
}
}
if (!function_exists('scanPath')) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,22 @@
*/
final class PrivatesAccessor
{
/**
* @template T
*
* @param class-string<T> $valueClassName
*
* @return T
* @param object $object
*/
public function getPrivatePropertyOfClass($object, string $propertyName, string $valueClassName)
{
$value = $this->getPrivateProperty($object, $propertyName);
if ($value instanceof $valueClassName) {
return $value;
}
throw new \MonorepoBuilder20211230\Symplify\PHPStanRules\Exception\ShouldNotHappenException();
}
/**
* @return mixed
* @param object $object
Expand All @@ -21,6 +37,20 @@ public function getPrivateProperty($object, string $propertyName)
$propertyReflection->setAccessible(\true);
return $propertyReflection->getValue($object);
}
/**
* @template T
*
* @param class-string<T> $valueClassName
* @param mixed $value
* @param object $object
*/
public function setPrivatePropertyOfClass($object, string $propertyName, $value, string $valueClassName) : void
{
if (!$value instanceof $valueClassName) {
throw new \MonorepoBuilder20211230\Symplify\PHPStanRules\Exception\ShouldNotHappenException();
}
$this->setPrivateProperty($object, $propertyName, $value);
}
/**
* @param mixed $value
* @param object $object
Expand Down

0 comments on commit 979b258

Please sign in to comment.