upgraded dependencies
This commit is contained in:
4
vendor/sebastian/object-reflector/.gitignore
vendored
4
vendor/sebastian/object-reflector/.gitignore
vendored
@@ -1,4 +0,0 @@
|
||||
/.idea
|
||||
/.php_cs.cache
|
||||
/composer.lock
|
||||
/vendor
|
79
vendor/sebastian/object-reflector/.php_cs
vendored
79
vendor/sebastian/object-reflector/.php_cs
vendored
@@ -1,79 +0,0 @@
|
||||
<?php
|
||||
$header = <<<'EOF'
|
||||
This file is part of object-reflector.
|
||||
|
||||
(c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
|
||||
For the full copyright and license information, please view the LICENSE
|
||||
file that was distributed with this source code.
|
||||
EOF;
|
||||
|
||||
return PhpCsFixer\Config::create()
|
||||
->setRiskyAllowed(true)
|
||||
->setRules(
|
||||
[
|
||||
'array_syntax' => ['syntax' => 'short'],
|
||||
'binary_operator_spaces' => [
|
||||
'align_double_arrow' => true,
|
||||
'align_equals' => true
|
||||
],
|
||||
'blank_line_after_namespace' => true,
|
||||
'blank_line_before_return' => true,
|
||||
'braces' => true,
|
||||
'cast_spaces' => true,
|
||||
'concat_space' => ['spacing' => 'one'],
|
||||
'declare_strict_types' => true,
|
||||
'elseif' => true,
|
||||
'encoding' => true,
|
||||
'full_opening_tag' => true,
|
||||
'function_declaration' => true,
|
||||
#'header_comment' => ['header' => $header, 'separate' => 'none'],
|
||||
'indentation_type' => true,
|
||||
'line_ending' => true,
|
||||
'lowercase_constants' => true,
|
||||
'lowercase_keywords' => true,
|
||||
'method_argument_space' => true,
|
||||
'no_alias_functions' => true,
|
||||
'no_blank_lines_after_class_opening' => true,
|
||||
'no_blank_lines_after_phpdoc' => true,
|
||||
'no_closing_tag' => true,
|
||||
'no_empty_phpdoc' => true,
|
||||
'no_empty_statement' => true,
|
||||
'no_extra_consecutive_blank_lines' => true,
|
||||
'no_leading_namespace_whitespace' => true,
|
||||
'no_singleline_whitespace_before_semicolons' => true,
|
||||
'no_spaces_after_function_name' => true,
|
||||
'no_spaces_inside_parenthesis' => true,
|
||||
'no_trailing_comma_in_list_call' => true,
|
||||
'no_trailing_whitespace' => true,
|
||||
'no_unused_imports' => true,
|
||||
'no_whitespace_in_blank_line' => true,
|
||||
'phpdoc_align' => true,
|
||||
'phpdoc_indent' => true,
|
||||
'phpdoc_no_access' => true,
|
||||
'phpdoc_no_empty_return' => true,
|
||||
'phpdoc_no_package' => true,
|
||||
'phpdoc_scalar' => true,
|
||||
'phpdoc_separation' => true,
|
||||
'phpdoc_to_comment' => true,
|
||||
'phpdoc_trim' => true,
|
||||
'phpdoc_types' => true,
|
||||
'phpdoc_var_without_name' => true,
|
||||
'self_accessor' => true,
|
||||
'simplified_null_return' => true,
|
||||
'single_blank_line_at_eof' => true,
|
||||
'single_import_per_statement' => true,
|
||||
'single_line_after_imports' => true,
|
||||
'single_quote' => true,
|
||||
'ternary_operator_spaces' => true,
|
||||
'trim_array_spaces' => true,
|
||||
'visibility_required' => true,
|
||||
]
|
||||
)
|
||||
->setFinder(
|
||||
PhpCsFixer\Finder::create()
|
||||
->files()
|
||||
->in(__DIR__ . '/src')
|
||||
->in(__DIR__ . '/tests')
|
||||
->name('*.php')
|
||||
);
|
8
vendor/sebastian/object-reflector/.psalm/baseline.xml
vendored
Normal file
8
vendor/sebastian/object-reflector/.psalm/baseline.xml
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<files psalm-version="4.0.1@b1e2e30026936ef8d5bf6a354d1c3959b6231f44">
|
||||
<file src="src/ObjectReflector.php">
|
||||
<DocblockTypeContradiction occurrences="1">
|
||||
<code>is_object($object)</code>
|
||||
</DocblockTypeContradiction>
|
||||
</file>
|
||||
</files>
|
16
vendor/sebastian/object-reflector/.psalm/config.xml
vendored
Normal file
16
vendor/sebastian/object-reflector/.psalm/config.xml
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0"?>
|
||||
<psalm
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="https://getpsalm.org/schema/config"
|
||||
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
|
||||
resolveFromConfigFile="false"
|
||||
totallyTyped="false"
|
||||
errorBaseline=".psalm/baseline.xml"
|
||||
>
|
||||
<projectFiles>
|
||||
<directory name="src" />
|
||||
<ignoreFiles>
|
||||
<directory name="vendor" />
|
||||
</ignoreFiles>
|
||||
</projectFiles>
|
||||
</psalm>
|
26
vendor/sebastian/object-reflector/.travis.yml
vendored
26
vendor/sebastian/object-reflector/.travis.yml
vendored
@@ -1,26 +0,0 @@
|
||||
language: php
|
||||
|
||||
php:
|
||||
- 7.0
|
||||
- 7.0snapshot
|
||||
- 7.1
|
||||
- 7.1snapshot
|
||||
- master
|
||||
|
||||
sudo: false
|
||||
|
||||
before_install:
|
||||
- composer self-update
|
||||
- composer clear-cache
|
||||
|
||||
install:
|
||||
- travis_retry composer update --no-interaction --no-ansi --no-progress --no-suggest --optimize-autoloader --prefer-stable
|
||||
|
||||
script:
|
||||
- ./vendor/bin/phpunit --coverage-clover=coverage.xml
|
||||
|
||||
after_success:
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
|
||||
notifications:
|
||||
email: false
|
44
vendor/sebastian/object-reflector/ChangeLog.md
vendored
44
vendor/sebastian/object-reflector/ChangeLog.md
vendored
@@ -2,17 +2,41 @@
|
||||
|
||||
All notable changes to `sebastianbergmann/object-reflector` are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
|
||||
|
||||
## 1.1.2 - 2020-11-30
|
||||
## [2.0.4] - 2020-10-26
|
||||
|
||||
### Fixed
|
||||
|
||||
* `SebastianBergmann\ObjectReflector\Exception` now correctly extends `\Throwable`
|
||||
|
||||
## [2.0.3] - 2020-09-28
|
||||
|
||||
### Changed
|
||||
|
||||
* Changed PHP version constraint in `composer.json` from `^7.0` to `>=7.1`
|
||||
* Changed PHP version constraint in `composer.json` from `^7.3 || ^8.0` to `>=7.3`
|
||||
|
||||
## 1.1.1 - 2017-03-29
|
||||
## [2.0.2] - 2020-06-26
|
||||
|
||||
* Fixed [#1](https://github.com/sebastianbergmann/object-reflector/issues/1): Attributes that with non-string names are not handled correctly
|
||||
### Added
|
||||
|
||||
## 1.1.0 - 2017-03-16
|
||||
* This component is now supported on PHP 8
|
||||
|
||||
## [2.0.1] - 2020-06-15
|
||||
|
||||
### Changed
|
||||
|
||||
* Tests etc. are now ignored for archive exports
|
||||
|
||||
## [2.0.0] - 2020-02-07
|
||||
|
||||
### Removed
|
||||
|
||||
* This component is no longer supported on PHP 7.0, PHP 7.1, and PHP 7.2
|
||||
|
||||
## [1.1.1] - 2017-03-29
|
||||
|
||||
* Fixed [#1](https://github.com/sebastianbergmann/object-reflector/issues/1): Attributes with non-string names are not handled correctly
|
||||
|
||||
## [1.1.0] - 2017-03-16
|
||||
|
||||
### Changed
|
||||
|
||||
@@ -22,6 +46,10 @@ All notable changes to `sebastianbergmann/object-reflector` are documented in th
|
||||
|
||||
* Initial release
|
||||
|
||||
[1.1.2]: https://github.com/sebastianbergmann/object-enumerator/compare/1.1.1...1.1.2
|
||||
[1.1.1]: https://github.com/sebastianbergmann/object-enumerator/compare/1.1.0...1.1.1
|
||||
[1.1.0]: https://github.com/sebastianbergmann/object-enumerator/compare/1.0.0...1.1.0
|
||||
[2.0.4]: https://github.com/sebastianbergmann/object-reflector/compare/2.0.3...2.0.4
|
||||
[2.0.3]: https://github.com/sebastianbergmann/object-reflector/compare/2.0.2...2.0.3
|
||||
[2.0.2]: https://github.com/sebastianbergmann/object-reflector/compare/2.0.1...2.0.2
|
||||
[2.0.1]: https://github.com/sebastianbergmann/object-reflector/compare/2.0.0...2.0.1
|
||||
[2.0.0]: https://github.com/sebastianbergmann/object-reflector/compare/1.1.1...2.0.0
|
||||
[1.1.1]: https://github.com/sebastianbergmann/object-reflector/compare/1.1.0...1.1.1
|
||||
[1.1.0]: https://github.com/sebastianbergmann/object-reflector/compare/1.0.0...1.1.0
|
||||
|
2
vendor/sebastian/object-reflector/LICENSE
vendored
2
vendor/sebastian/object-reflector/LICENSE
vendored
@@ -1,6 +1,6 @@
|
||||
Object Reflector
|
||||
|
||||
Copyright (c) 2017, Sebastian Bergmann <sebastian@phpunit.de>.
|
||||
Copyright (c) 2017-2020, Sebastian Bergmann <sebastian@phpunit.de>.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
14
vendor/sebastian/object-reflector/README.md
vendored
14
vendor/sebastian/object-reflector/README.md
vendored
@@ -1,4 +1,7 @@
|
||||
# Object Reflector
|
||||
# sebastian/object-reflector
|
||||
|
||||
[](https://github.com/sebastianbergmann/object-reflector/actions)
|
||||
[](https://shepherd.dev/github/sebastianbergmann/object-reflector)
|
||||
|
||||
Allows reflection of object attributes, including inherited and non-public ones.
|
||||
|
||||
@@ -6,9 +9,12 @@ Allows reflection of object attributes, including inherited and non-public ones.
|
||||
|
||||
You can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/):
|
||||
|
||||
composer require sebastian/object-reflector
|
||||
```
|
||||
composer require sebastian/object-reflector
|
||||
```
|
||||
|
||||
If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency:
|
||||
|
||||
composer require --dev sebastian/object-reflector
|
||||
|
||||
```
|
||||
composer require --dev sebastian/object-reflector
|
||||
```
|
||||
|
22
vendor/sebastian/object-reflector/build.xml
vendored
22
vendor/sebastian/object-reflector/build.xml
vendored
@@ -1,22 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="object-reflector" default="setup">
|
||||
<target name="setup" depends="clean,composer"/>
|
||||
|
||||
<target name="clean" description="Cleanup build artifacts">
|
||||
<delete dir="${basedir}/vendor"/>
|
||||
<delete file="${basedir}/composer.lock"/>
|
||||
</target>
|
||||
|
||||
<target name="composer" depends="clean" description="Install dependencies with Composer">
|
||||
<exec executable="composer" taskname="composer">
|
||||
<arg value="update"/>
|
||||
<arg value="--no-interaction"/>
|
||||
<arg value="--no-progress"/>
|
||||
<arg value="--no-ansi"/>
|
||||
<arg value="--no-suggest"/>
|
||||
<arg value="--optimize-autoloader"/>
|
||||
<arg value="--prefer-stable"/>
|
||||
</exec>
|
||||
</target>
|
||||
</project>
|
||||
|
14
vendor/sebastian/object-reflector/composer.json
vendored
14
vendor/sebastian/object-reflector/composer.json
vendored
@@ -9,11 +9,19 @@
|
||||
"email": "sebastian@phpunit.de"
|
||||
}
|
||||
],
|
||||
"prefer-stable": true,
|
||||
"config": {
|
||||
"platform": {
|
||||
"php": "7.3.0"
|
||||
},
|
||||
"optimize-autoloader": true,
|
||||
"sort-packages": true
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.0"
|
||||
"php": ">=7.3"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^6.0"
|
||||
"phpunit/phpunit": "^9.3"
|
||||
},
|
||||
"autoload": {
|
||||
"classmap": [
|
||||
@@ -27,7 +35,7 @@
|
||||
},
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.1-dev"
|
||||
"dev-master": "2.0-dev"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
19
vendor/sebastian/object-reflector/phpunit.xml
vendored
19
vendor/sebastian/object-reflector/phpunit.xml
vendored
@@ -1,19 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/6.0/phpunit.xsd"
|
||||
bootstrap="vendor/autoload.php"
|
||||
forceCoversAnnotation="true"
|
||||
beStrictAboutCoversAnnotation="true"
|
||||
beStrictAboutOutputDuringTests="true"
|
||||
beStrictAboutTodoAnnotatedTests="true"
|
||||
verbose="true">
|
||||
<testsuite>
|
||||
<directory suffix="Test.php">tests</directory>
|
||||
</testsuite>
|
||||
|
||||
<filter>
|
||||
<whitelist processUncoveredFilesFromWhitelist="true">
|
||||
<directory suffix=".php">src</directory>
|
||||
</whitelist>
|
||||
</filter>
|
||||
</phpunit>
|
@@ -1,17 +1,16 @@
|
||||
<?php
|
||||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of object-reflector.
|
||||
* This file is part of sebastian/object-reflector.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace SebastianBergmann\ObjectReflector;
|
||||
|
||||
interface Exception
|
||||
use Throwable;
|
||||
|
||||
interface Exception extends Throwable
|
||||
{
|
||||
}
|
||||
|
@@ -1,15 +1,12 @@
|
||||
<?php
|
||||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of object-reflector.
|
||||
* This file is part of sebastian/object-reflector.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace SebastianBergmann\ObjectReflector;
|
||||
|
||||
class InvalidArgumentException extends \InvalidArgumentException implements Exception
|
||||
|
@@ -1,24 +1,24 @@
|
||||
<?php
|
||||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of object-reflector.
|
||||
* This file is part of sebastian/object-reflector.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace SebastianBergmann\ObjectReflector;
|
||||
|
||||
use function count;
|
||||
use function explode;
|
||||
use function get_class;
|
||||
use function is_object;
|
||||
|
||||
class ObjectReflector
|
||||
{
|
||||
/**
|
||||
* @param object $object
|
||||
*
|
||||
* @return array
|
||||
*
|
||||
* @throws InvalidArgumentException
|
||||
*/
|
||||
public function getAttributes($object): array
|
||||
|
@@ -1,70 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* This file is part of object-reflector.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace SebastianBergmann\ObjectReflector;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use SebastianBergmann\ObjectReflector\TestFixture\ChildClass;
|
||||
use SebastianBergmann\ObjectReflector\TestFixture\ClassWithIntegerAttributeName;
|
||||
|
||||
/**
|
||||
* @covers SebastianBergmann\ObjectReflector\ObjectReflector
|
||||
*/
|
||||
class ObjectReflectorTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var ObjectReflector
|
||||
*/
|
||||
private $objectReflector;
|
||||
|
||||
protected function setUp()/*: void */
|
||||
{
|
||||
$this->objectReflector = new ObjectReflector;
|
||||
}
|
||||
|
||||
public function testReflectsAttributesOfObject()/*: void */
|
||||
{
|
||||
$o = new ChildClass;
|
||||
|
||||
$this->assertEquals(
|
||||
[
|
||||
'privateInChild' => 'private',
|
||||
'protectedInChild' => 'protected',
|
||||
'publicInChild' => 'public',
|
||||
'undeclared' => 'undeclared',
|
||||
'SebastianBergmann\ObjectReflector\TestFixture\ParentClass::privateInParent' => 'private',
|
||||
'SebastianBergmann\ObjectReflector\TestFixture\ParentClass::protectedInParent' => 'protected',
|
||||
'SebastianBergmann\ObjectReflector\TestFixture\ParentClass::publicInParent' => 'public',
|
||||
],
|
||||
$this->objectReflector->getAttributes($o)
|
||||
);
|
||||
}
|
||||
|
||||
public function testReflectsAttributeWithIntegerName()/*: void */
|
||||
{
|
||||
$o = new ClassWithIntegerAttributeName;
|
||||
|
||||
$this->assertEquals(
|
||||
[
|
||||
1 => 2
|
||||
],
|
||||
$this->objectReflector->getAttributes($o)
|
||||
);
|
||||
}
|
||||
|
||||
public function testRaisesExceptionWhenPassedArgumentIsNotAnObject()/*: void */
|
||||
{
|
||||
$this->expectException(InvalidArgumentException::class);
|
||||
|
||||
$this->objectReflector->getAttributes(null);
|
||||
}
|
||||
}
|
@@ -1,25 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* This file is part of object-reflector.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace SebastianBergmann\ObjectReflector\TestFixture;
|
||||
|
||||
class ChildClass extends ParentClass
|
||||
{
|
||||
private $privateInChild = 'private';
|
||||
private $protectedInChild = 'protected';
|
||||
private $publicInChild = 'public';
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->undeclared = 'undeclared';
|
||||
}
|
||||
}
|
@@ -1,22 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* This file is part of object-reflector.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace SebastianBergmann\ObjectReflector\TestFixture;
|
||||
|
||||
class ClassWithIntegerAttributeName
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
$i = 1;
|
||||
$this->$i = 2;
|
||||
}
|
||||
}
|
@@ -1,20 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* This file is part of object-reflector.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace SebastianBergmann\ObjectReflector\TestFixture;
|
||||
|
||||
class ParentClass
|
||||
{
|
||||
private $privateInParent = 'private';
|
||||
private $protectedInParent = 'protected';
|
||||
private $publicInParent = 'public';
|
||||
}
|
Reference in New Issue
Block a user