Commit 57ee2f3b authored by webchick's avatar webchick

Issue #2400407 by DuaelFr: Ensure vendor sebastian/recursion-context is on latest stable release

parent e6511dde
......@@ -1915,16 +1915,16 @@
},
{
"name": "sebastian/recursion-context",
"version": "1.0.0",
"version": "1.0.1",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/recursion-context.git",
"reference": "3989662bbb30a29d20d9faa04a846af79b276252"
"reference": "994d4a811bafe801fb06dccbee797863ba2792ba"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/3989662bbb30a29d20d9faa04a846af79b276252",
"reference": "3989662bbb30a29d20d9faa04a846af79b276252",
"url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/994d4a811bafe801fb06dccbee797863ba2792ba",
"reference": "994d4a811bafe801fb06dccbee797863ba2792ba",
"shasum": ""
},
"require": {
......@@ -1964,7 +1964,7 @@
],
"description": "Provides functionality to recursively process PHP variables",
"homepage": "http://www.github.com/sebastianbergmann/recursion-context",
"time": "2015-01-24 09:48:32"
"time": "2015-06-21 08:04:50"
},
{
"name": "sebastian/version",
......
......@@ -421,61 +421,6 @@
"description": "Library that helps with managing the version number of Git-hosted PHP projects",
"homepage": "https://github.com/sebastianbergmann/version"
},
{
"name": "sebastian/recursion-context",
"version": "1.0.0",
"version_normalized": "1.0.0.0",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/recursion-context.git",
"reference": "3989662bbb30a29d20d9faa04a846af79b276252"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/3989662bbb30a29d20d9faa04a846af79b276252",
"reference": "3989662bbb30a29d20d9faa04a846af79b276252",
"shasum": ""
},
"require": {
"php": ">=5.3.3"
},
"require-dev": {
"phpunit/phpunit": "~4.4"
},
"time": "2015-01-24 09:48:32",
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.0.x-dev"
}
},
"installation-source": "dist",
"autoload": {
"classmap": [
"src/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Jeff Welch",
"email": "whatthejeff@gmail.com"
},
{
"name": "Sebastian Bergmann",
"email": "sebastian@phpunit.de"
},
{
"name": "Adam Harvey",
"email": "aharvey@php.net"
}
],
"description": "Provides functionality to recursively process PHP variables",
"homepage": "http://www.github.com/sebastianbergmann/recursion-context"
},
{
"name": "sebastian/diff",
"version": "1.3.0",
......@@ -3484,5 +3429,60 @@
"export",
"exporter"
]
},
{
"name": "sebastian/recursion-context",
"version": "1.0.1",
"version_normalized": "1.0.1.0",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/recursion-context.git",
"reference": "994d4a811bafe801fb06dccbee797863ba2792ba"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/994d4a811bafe801fb06dccbee797863ba2792ba",
"reference": "994d4a811bafe801fb06dccbee797863ba2792ba",
"shasum": ""
},
"require": {
"php": ">=5.3.3"
},
"require-dev": {
"phpunit/phpunit": "~4.4"
},
"time": "2015-06-21 08:04:50",
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.0.x-dev"
}
},
"installation-source": "dist",
"autoload": {
"classmap": [
"src/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Jeff Welch",
"email": "whatthejeff@gmail.com"
},
{
"name": "Sebastian Bergmann",
"email": "sebastian@phpunit.de"
},
{
"name": "Adam Harvey",
"email": "aharvey@php.net"
}
],
"description": "Provides functionality to recursively process PHP variables",
"homepage": "http://www.github.com/sebastianbergmann/recursion-context"
}
]
......@@ -7,7 +7,6 @@ php:
- 5.5
- 5.6
- hhvm
- hhvm-nightly
sudo: false
......
......@@ -13,12 +13,6 @@
/**
* A context containing previously processed arrays and objects
* when recursively processing a value.
*
* @author Sebastian Bergmann <sebastian@phpunit.de>
* @author Adam Harvey <aharvey@php.net>
* @copyright Sebastian Bergmann <sebastian@phpunit.de>
* @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License
* @link https://github.com/sebastianbergmann/recursion-context
*/
final class Context
{
......@@ -44,11 +38,11 @@ public function __construct()
/**
* Adds a value to the context.
*
* @param array|object $value The value to add.
* @return integer|string The ID of the stored value, either as
* a string or integer.
* @param array|object $value The value to add.
* @return int|string The ID of the stored value, either as
* a string or integer.
* @throws InvalidArgumentException Thrown if $value is not an array or
* object
* object
*/
public function add(&$value)
{
......@@ -68,12 +62,12 @@ public function add(&$value)
/**
* Checks if the given value exists within the context.
*
* @param array|object $value The value to check.
* @return integer|string|false The string or integer ID of the stored
* value if it has already been seen, or
* false if the value is not stored.
* @param array|object $value The value to check.
* @return int|string|false The string or integer ID of the stored
* value if it has already been seen, or
* false if the value is not stored.
* @throws InvalidArgumentException Thrown if $value is not an array or
* object
* object
*/
public function contains(&$value)
{
......@@ -91,7 +85,7 @@ public function contains(&$value)
}
/**
* @param array $array
* @param array $array
* @return bool|int
*/
private function addArray(array &$array)
......@@ -121,8 +115,8 @@ private function addObject($object)
}
/**
* @param array $array
* @return integer|false
* @param array $array
* @return int|false
*/
private function containsArray(array &$array)
{
......@@ -134,6 +128,7 @@ private function containsArray(array &$array)
if (isset($array[$hash]) && $array[$hash] === $hash) {
unset($this->arrays[$key][$hash]);
return $key;
}
......@@ -144,7 +139,7 @@ private function containsArray(array &$array)
}
/**
* @param object $value
* @param object $value
* @return string|false
*/
private function containsObject($value)
......
......@@ -11,11 +11,6 @@
namespace SebastianBergmann\RecursionContext;
/**
* @author Sebastian Bergmann <sebastian@phpunit.de>
* @author Adam Harvey <aharvey@php.net>
* @copyright Sebastian Bergmann <sebastian@phpunit.de>
* @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License
* @link https://github.com/sebastianbergmann/recursion-context
*/
interface Exception
{
......
......@@ -11,11 +11,6 @@
namespace SebastianBergmann\RecursionContext;
/**
* @author Sebastian Bergmann <sebastian@phpunit.de>
* @author Adam Harvey <aharvey@php.net>
* @copyright Sebastian Bergmann <sebastian@phpunit.de>
* @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License
* @link https://github.com/sebastianbergmann/recursion-context
*/
final class InvalidArgumentException extends \InvalidArgumentException implements Exception
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment