Upgrade framework
This commit is contained in:
7
vendor/sebastian/resource-operations/.gitattributes
vendored
Normal file
7
vendor/sebastian/resource-operations/.gitattributes
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
/.github export-ignore
|
||||
/.php_cs.dist export-ignore
|
||||
/build.xml export-ignore
|
||||
/phpunit.xml export-ignore
|
||||
/tests export-ignore
|
||||
|
||||
*.php diff=php
|
||||
@@ -1,3 +1,6 @@
|
||||
/.idea
|
||||
/build/arginfo.php
|
||||
|
||||
/.php_cs.cache
|
||||
/build/FunctionSignatureMap.php
|
||||
/composer.lock
|
||||
/vendor
|
||||
/.phpunit.result.cache
|
||||
|
||||
54
vendor/sebastian/resource-operations/ChangeLog.md
vendored
Normal file
54
vendor/sebastian/resource-operations/ChangeLog.md
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
# ChangeLog
|
||||
|
||||
All notable changes are documented in this file using the [Keep a CHANGELOG](https://keepachangelog.com/) principles.
|
||||
|
||||
## [3.0.3] - 2020-09-28
|
||||
|
||||
### Changed
|
||||
|
||||
* Changed PHP version constraint in `composer.json` from `^7.3 || ^8.0` to `>=7.3`
|
||||
|
||||
## [3.0.2] - 2020-06-26
|
||||
|
||||
### Added
|
||||
|
||||
* This component is now supported on PHP 8
|
||||
|
||||
## [3.0.1] - 2020-06-15
|
||||
|
||||
### Changed
|
||||
|
||||
* Tests etc. are now ignored for archive exports
|
||||
|
||||
## [3.0.0] - 2020-02-07
|
||||
|
||||
### Removed
|
||||
|
||||
* This component is no longer supported on PHP 7.1 and PHP 7.2
|
||||
|
||||
## [2.0.1] - 2018-10-04
|
||||
|
||||
### Fixed
|
||||
|
||||
* Functions and methods with nullable parameters of type `resource` are now also considered
|
||||
|
||||
## [2.0.0] - 2018-09-27
|
||||
|
||||
### Changed
|
||||
|
||||
* [FunctionSignatureMap.php](https://raw.githubusercontent.com/phan/phan/master/src/Phan/Language/Internal/FunctionSignatureMap.php) from `phan/phan` is now used instead of [arginfo.php](https://raw.githubusercontent.com/rlerdorf/phan/master/includes/arginfo.php) from `rlerdorf/phan`
|
||||
|
||||
### Removed
|
||||
|
||||
* This component is no longer supported on PHP 5.6 and PHP 7.0
|
||||
|
||||
## 1.0.0 - 2015-07-28
|
||||
|
||||
* Initial release
|
||||
|
||||
[3.0.3]: https://github.com/sebastianbergmann/comparator/resource-operations/3.0.2...3.0.3
|
||||
[3.0.2]: https://github.com/sebastianbergmann/comparator/resource-operations/3.0.1...3.0.2
|
||||
[3.0.1]: https://github.com/sebastianbergmann/comparator/resource-operations/3.0.0...3.0.1
|
||||
[3.0.0]: https://github.com/sebastianbergmann/comparator/resource-operations/2.0.1...3.0.0
|
||||
[2.0.1]: https://github.com/sebastianbergmann/comparator/resource-operations/2.0.0...2.0.1
|
||||
[2.0.0]: https://github.com/sebastianbergmann/comparator/resource-operations/1.0.0...2.0.0
|
||||
2
vendor/sebastian/resource-operations/LICENSE
vendored
2
vendor/sebastian/resource-operations/LICENSE
vendored
@@ -1,6 +1,6 @@
|
||||
Resource Operations
|
||||
|
||||
Copyright (c) 2015, Sebastian Bergmann <sebastian@phpunit.de>.
|
||||
Copyright (c) 2015-2020, Sebastian Bergmann <sebastian@phpunit.de>.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
||||
14
vendor/sebastian/resource-operations/README.md
vendored
14
vendor/sebastian/resource-operations/README.md
vendored
@@ -4,13 +4,11 @@ Provides a list of PHP built-in functions that operate on resources.
|
||||
|
||||
## Installation
|
||||
|
||||
To add this component as a local, per-project dependency to your project, simply add a dependency on `sebastian/resource-operations` to your project's `composer.json` file. Here is a minimal example of a `composer.json` file that just defines a dependency on this component:
|
||||
You can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/):
|
||||
|
||||
```JSON
|
||||
{
|
||||
"require": {
|
||||
"sebastian/resource-operations": "~1.0"
|
||||
}
|
||||
}
|
||||
```
|
||||
composer require sebastian/resource-operations
|
||||
|
||||
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/resource-operations
|
||||
|
||||
|
||||
24
vendor/sebastian/resource-operations/build.xml
vendored
24
vendor/sebastian/resource-operations/build.xml
vendored
@@ -1,24 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="resource-operations" default="build">
|
||||
<target name="build" depends="generate" />
|
||||
|
||||
<target name="generate" depends="download-arginfo">
|
||||
<exec executable="${basedir}/build/generate.php" taskname="generate" />
|
||||
</target>
|
||||
|
||||
<target name="download-arginfo">
|
||||
<tstamp>
|
||||
<format property="thirty.days.ago" pattern="MM/dd/yyyy hh:mm aa" offset="-30" unit="day"/>
|
||||
</tstamp>
|
||||
|
||||
<delete>
|
||||
<fileset dir="${basedir}/build">
|
||||
<include name="arginfo.php" />
|
||||
<date datetime="${thirty.days.ago}" when="before"/>
|
||||
</fileset>
|
||||
</delete>
|
||||
|
||||
<get src="https://raw.githubusercontent.com/rlerdorf/phan/master/includes/arginfo.php" dest="${basedir}/build/arginfo.php" skipexisting="true"/>
|
||||
</target>
|
||||
</project>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of resource-operations.
|
||||
*
|
||||
@@ -9,13 +9,17 @@
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
$functions = require __DIR__ . '/arginfo.php';
|
||||
$functions = require __DIR__ . '/FunctionSignatureMap.php';
|
||||
$resourceFunctions = [];
|
||||
|
||||
foreach ($functions as $function => $arguments) {
|
||||
foreach ($arguments as $argument) {
|
||||
if ($argument == 'resource') {
|
||||
$resourceFunctions[] = $function;
|
||||
if (strpos($argument, '?') === 0) {
|
||||
$argument = substr($argument, 1);
|
||||
}
|
||||
|
||||
if ($argument === 'resource') {
|
||||
$resourceFunctions[] = explode('\'', $function)[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -24,7 +28,7 @@ $resourceFunctions = array_unique($resourceFunctions);
|
||||
sort($resourceFunctions);
|
||||
|
||||
$buffer = <<<EOT
|
||||
<?php
|
||||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of resource-operations.
|
||||
*
|
||||
@@ -33,15 +37,14 @@ $buffer = <<<EOT
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace SebastianBergmann\ResourceOperations;
|
||||
|
||||
class ResourceOperations
|
||||
final class ResourceOperations
|
||||
{
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public static function getFunctions()
|
||||
public static function getFunctions(): array
|
||||
{
|
||||
return [
|
||||
|
||||
|
||||
@@ -9,17 +9,28 @@
|
||||
"email": "sebastian@phpunit.de"
|
||||
}
|
||||
],
|
||||
"prefer-stable": true,
|
||||
"require": {
|
||||
"php": ">=5.6.0"
|
||||
"php": ">=7.3"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^9.0"
|
||||
},
|
||||
"autoload": {
|
||||
"classmap": [
|
||||
"src/"
|
||||
]
|
||||
},
|
||||
"config": {
|
||||
"platform": {
|
||||
"php": "7.3.0"
|
||||
},
|
||||
"optimize-autoloader": true,
|
||||
"sort-packages": true
|
||||
},
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.0.x-dev"
|
||||
"dev-master": "3.0-dev"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user