提交的内容
This commit is contained in:
2
vendor/rmccue/requests/src/Utility/CaseInsensitiveDictionary.php
vendored
Executable file → Normal file
2
vendor/rmccue/requests/src/Utility/CaseInsensitiveDictionary.php
vendored
Executable file → Normal file
@ -95,7 +95,7 @@ class CaseInsensitiveDictionary implements ArrayAccess, IteratorAggregate {
|
||||
/**
|
||||
* Unset the given header
|
||||
*
|
||||
* @param string $offset
|
||||
* @param string $offset The key for the item to unset.
|
||||
*/
|
||||
#[ReturnTypeWillChange]
|
||||
public function offsetUnset($offset) {
|
||||
|
||||
21
vendor/rmccue/requests/src/Utility/FilteredIterator.php
vendored
Executable file → Normal file
21
vendor/rmccue/requests/src/Utility/FilteredIterator.php
vendored
Executable file → Normal file
@ -28,7 +28,7 @@ final class FilteredIterator extends ArrayIterator {
|
||||
/**
|
||||
* Create a new iterator
|
||||
*
|
||||
* @param array $data
|
||||
* @param array $data The array or object to be iterated on.
|
||||
* @param callable $callback Callback to be called on each value
|
||||
*
|
||||
* @throws \WpOrg\Requests\Exception\InvalidArgument When the passed $data argument is not iterable.
|
||||
@ -46,14 +46,25 @@ final class FilteredIterator extends ArrayIterator {
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
* Prevent unserialization of the object for security reasons.
|
||||
*
|
||||
* @phpcs:disable PHPCompatibility.FunctionNameRestrictions.NewMagicMethods.__unserializeFound
|
||||
*
|
||||
* @param array $data Restored array of data originally serialized.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
#[ReturnTypeWillChange]
|
||||
public function __unserialize($data) {}
|
||||
// phpcs:enable
|
||||
|
||||
/**
|
||||
* Perform reinitialization tasks.
|
||||
*
|
||||
* Prevents a callback from being injected during unserialization of an object.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __wakeup() {
|
||||
unset($this->callback);
|
||||
}
|
||||
@ -75,7 +86,11 @@ final class FilteredIterator extends ArrayIterator {
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
* Prevent creating a PHP value from a stored representation of the object for security reasons.
|
||||
*
|
||||
* @param string $data The serialized string.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
#[ReturnTypeWillChange]
|
||||
public function unserialize($data) {}
|
||||
|
||||
0
vendor/rmccue/requests/src/Utility/InputValidator.php
vendored
Executable file → Normal file
0
vendor/rmccue/requests/src/Utility/InputValidator.php
vendored
Executable file → Normal file
Reference in New Issue
Block a user