Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Container/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -475,11 +475,11 @@ private function getInjectParameters(array $parameters): array
/**
* Get injectable parameter
*
* @param ReflectionClass $class
* @param mixed $class
* @return ?object
* @throws ReflectionException
*/
private function getInjectParameter(ReflectionClass $class): ?object
private function getInjectParameter(mixed $class): ?object
{
$class_name = $class->getName();

Expand Down
11 changes: 8 additions & 3 deletions src/Queue/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ class Connection
/**
* The configuration array
*
* @var string
* @var ?string
*/
private string $connection = "beanstalkd";
private ?string $connection = null;

/**
* The supported connection
Expand Down Expand Up @@ -104,7 +104,8 @@ public function getAdapter(): QueueAdapter
*
* @param string $name
* @param array $arguments
* @return mixed
* @return mixed|null
* @throws ErrorException
*/
public function __call(string $name, array $arguments)
{
Expand All @@ -113,5 +114,9 @@ public function __call(string $name, array $arguments)
if (method_exists($adapter, $name)) {
return call_user_func_array([$adapter, $name], $arguments);
}

$class = get_class($adapter);

throw new ErrorException("Call to undefined method {$class}->{$name}()");
}
}
2 changes: 1 addition & 1 deletion src/Session/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ private function initializeInternalSessionStorage(): void
private function setCookieParameters(): void
{
session_set_cookie_params(
$this->config["lifetime"],
(int) $this->config["lifetime"],
$this->config["path"],
$this->config['domain'],
$this->config["secure"],
Expand Down
Loading