Composer Version Change
This commit is contained in:
Vendored
+1
-1
@@ -20,7 +20,7 @@
|
||||
},
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "3.x-dev"
|
||||
"dev-master": "2.0.x-dev"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -14,5 +14,5 @@ interface LoggerAwareInterface
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setLogger(LoggerInterface $logger): void;
|
||||
public function setLogger(LoggerInterface $logger);
|
||||
}
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ trait LoggerAwareTrait
|
||||
*
|
||||
* @param LoggerInterface $logger
|
||||
*/
|
||||
public function setLogger(LoggerInterface $logger): void
|
||||
public function setLogger(LoggerInterface $logger)
|
||||
{
|
||||
$this->logger = $logger;
|
||||
}
|
||||
|
||||
+9
-9
@@ -27,7 +27,7 @@ interface LoggerInterface
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function emergency(string|\Stringable $message, array $context = []): void;
|
||||
public function emergency(string|\Stringable $message, array $context = []);
|
||||
|
||||
/**
|
||||
* Action must be taken immediately.
|
||||
@@ -40,7 +40,7 @@ interface LoggerInterface
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function alert(string|\Stringable $message, array $context = []): void;
|
||||
public function alert(string|\Stringable $message, array $context = []);
|
||||
|
||||
/**
|
||||
* Critical conditions.
|
||||
@@ -52,7 +52,7 @@ interface LoggerInterface
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function critical(string|\Stringable $message, array $context = []): void;
|
||||
public function critical(string|\Stringable $message, array $context = []);
|
||||
|
||||
/**
|
||||
* Runtime errors that do not require immediate action but should typically
|
||||
@@ -63,7 +63,7 @@ interface LoggerInterface
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function error(string|\Stringable $message, array $context = []): void;
|
||||
public function error(string|\Stringable $message, array $context = []);
|
||||
|
||||
/**
|
||||
* Exceptional occurrences that are not errors.
|
||||
@@ -76,7 +76,7 @@ interface LoggerInterface
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function warning(string|\Stringable $message, array $context = []): void;
|
||||
public function warning(string|\Stringable $message, array $context = []);
|
||||
|
||||
/**
|
||||
* Normal but significant events.
|
||||
@@ -86,7 +86,7 @@ interface LoggerInterface
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function notice(string|\Stringable $message, array $context = []): void;
|
||||
public function notice(string|\Stringable $message, array $context = []);
|
||||
|
||||
/**
|
||||
* Interesting events.
|
||||
@@ -98,7 +98,7 @@ interface LoggerInterface
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function info(string|\Stringable $message, array $context = []): void;
|
||||
public function info(string|\Stringable $message, array $context = []);
|
||||
|
||||
/**
|
||||
* Detailed debug information.
|
||||
@@ -108,7 +108,7 @@ interface LoggerInterface
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function debug(string|\Stringable $message, array $context = []): void;
|
||||
public function debug(string|\Stringable $message, array $context = []);
|
||||
|
||||
/**
|
||||
* Logs with an arbitrary level.
|
||||
@@ -121,5 +121,5 @@ interface LoggerInterface
|
||||
*
|
||||
* @throws \Psr\Log\InvalidArgumentException
|
||||
*/
|
||||
public function log($level, string|\Stringable $message, array $context = []): void;
|
||||
public function log($level, string|\Stringable $message, array $context = []);
|
||||
}
|
||||
|
||||
Vendored
+9
-9
@@ -20,7 +20,7 @@ trait LoggerTrait
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function emergency(string|\Stringable $message, array $context = []): void
|
||||
public function emergency(string|\Stringable $message, array $context = [])
|
||||
{
|
||||
$this->log(LogLevel::EMERGENCY, $message, $context);
|
||||
}
|
||||
@@ -36,7 +36,7 @@ trait LoggerTrait
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function alert(string|\Stringable $message, array $context = []): void
|
||||
public function alert(string|\Stringable $message, array $context = [])
|
||||
{
|
||||
$this->log(LogLevel::ALERT, $message, $context);
|
||||
}
|
||||
@@ -51,7 +51,7 @@ trait LoggerTrait
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function critical(string|\Stringable $message, array $context = []): void
|
||||
public function critical(string|\Stringable $message, array $context = [])
|
||||
{
|
||||
$this->log(LogLevel::CRITICAL, $message, $context);
|
||||
}
|
||||
@@ -65,7 +65,7 @@ trait LoggerTrait
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function error(string|\Stringable $message, array $context = []): void
|
||||
public function error(string|\Stringable $message, array $context = [])
|
||||
{
|
||||
$this->log(LogLevel::ERROR, $message, $context);
|
||||
}
|
||||
@@ -81,7 +81,7 @@ trait LoggerTrait
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function warning(string|\Stringable $message, array $context = []): void
|
||||
public function warning(string|\Stringable $message, array $context = [])
|
||||
{
|
||||
$this->log(LogLevel::WARNING, $message, $context);
|
||||
}
|
||||
@@ -94,7 +94,7 @@ trait LoggerTrait
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function notice(string|\Stringable $message, array $context = []): void
|
||||
public function notice(string|\Stringable $message, array $context = [])
|
||||
{
|
||||
$this->log(LogLevel::NOTICE, $message, $context);
|
||||
}
|
||||
@@ -109,7 +109,7 @@ trait LoggerTrait
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function info(string|\Stringable $message, array $context = []): void
|
||||
public function info(string|\Stringable $message, array $context = [])
|
||||
{
|
||||
$this->log(LogLevel::INFO, $message, $context);
|
||||
}
|
||||
@@ -122,7 +122,7 @@ trait LoggerTrait
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function debug(string|\Stringable $message, array $context = []): void
|
||||
public function debug(string|\Stringable $message, array $context = [])
|
||||
{
|
||||
$this->log(LogLevel::DEBUG, $message, $context);
|
||||
}
|
||||
@@ -138,5 +138,5 @@ trait LoggerTrait
|
||||
*
|
||||
* @throws \Psr\Log\InvalidArgumentException
|
||||
*/
|
||||
abstract public function log($level, string|\Stringable $message, array $context = []): void;
|
||||
abstract public function log($level, string|\Stringable $message, array $context = []);
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -23,7 +23,7 @@ class NullLogger extends AbstractLogger
|
||||
*
|
||||
* @throws \Psr\Log\InvalidArgumentException
|
||||
*/
|
||||
public function log($level, string|\Stringable $message, array $context = []): void
|
||||
public function log($level, string|\Stringable $message, array $context = [])
|
||||
{
|
||||
// noop
|
||||
}
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@
|
||||
},
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "3.0.x-dev"
|
||||
"dev-master": "2.0.x-dev"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+8
-8
@@ -15,7 +15,7 @@ interface CacheInterface
|
||||
* @throws \Psr\SimpleCache\InvalidArgumentException
|
||||
* MUST be thrown if the $key string is not a legal value.
|
||||
*/
|
||||
public function get(string $key, mixed $default = null): mixed;
|
||||
public function get(string $key, mixed $default = null);
|
||||
|
||||
/**
|
||||
* Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
|
||||
@@ -31,7 +31,7 @@ interface CacheInterface
|
||||
* @throws \Psr\SimpleCache\InvalidArgumentException
|
||||
* MUST be thrown if the $key string is not a legal value.
|
||||
*/
|
||||
public function set(string $key, mixed $value, null|int|\DateInterval $ttl = null): bool;
|
||||
public function set(string $key, mixed $value, null|int|\DateInterval $ttl = null);
|
||||
|
||||
/**
|
||||
* Delete an item from the cache by its unique key.
|
||||
@@ -43,14 +43,14 @@ interface CacheInterface
|
||||
* @throws \Psr\SimpleCache\InvalidArgumentException
|
||||
* MUST be thrown if the $key string is not a legal value.
|
||||
*/
|
||||
public function delete(string $key): bool;
|
||||
public function delete(string $key);
|
||||
|
||||
/**
|
||||
* Wipes clean the entire cache's keys.
|
||||
*
|
||||
* @return bool True on success and false on failure.
|
||||
*/
|
||||
public function clear(): bool;
|
||||
public function clear();
|
||||
|
||||
/**
|
||||
* Obtains multiple cache items by their unique keys.
|
||||
@@ -64,7 +64,7 @@ interface CacheInterface
|
||||
* MUST be thrown if $keys is neither an array nor a Traversable,
|
||||
* or if any of the $keys are not a legal value.
|
||||
*/
|
||||
public function getMultiple(iterable $keys, mixed $default = null): iterable;
|
||||
public function getMultiple(iterable $keys, mixed $default = null);
|
||||
|
||||
/**
|
||||
* Persists a set of key => value pairs in the cache, with an optional TTL.
|
||||
@@ -80,7 +80,7 @@ interface CacheInterface
|
||||
* MUST be thrown if $values is neither an array nor a Traversable,
|
||||
* or if any of the $values are not a legal value.
|
||||
*/
|
||||
public function setMultiple(iterable $values, null|int|\DateInterval $ttl = null): bool;
|
||||
public function setMultiple(iterable $values, null|int|\DateInterval $ttl = null);
|
||||
|
||||
/**
|
||||
* Deletes multiple cache items in a single operation.
|
||||
@@ -93,7 +93,7 @@ interface CacheInterface
|
||||
* MUST be thrown if $keys is neither an array nor a Traversable,
|
||||
* or if any of the $keys are not a legal value.
|
||||
*/
|
||||
public function deleteMultiple(iterable $keys): bool;
|
||||
public function deleteMultiple(iterable $keys);
|
||||
|
||||
/**
|
||||
* Determines whether an item is present in the cache.
|
||||
@@ -110,5 +110,5 @@ interface CacheInterface
|
||||
* @throws \Psr\SimpleCache\InvalidArgumentException
|
||||
* MUST be thrown if the $key string is not a legal value.
|
||||
*/
|
||||
public function has(string $key): bool;
|
||||
public function has(string $key);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user