Skip to content
Closed
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
2 changes: 1 addition & 1 deletion src/Illuminate/Cache/Console/PruneStaleTagsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function handle(CacheManager $cache)
*
* @return array
*/
protected function getArguments()
protected function getArguments(): array
{
return [
['store', InputArgument::OPTIONAL, 'The name of the store you would like to prune tags from'],
Expand Down
14 changes: 7 additions & 7 deletions src/Illuminate/Config/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct(array $items = [])
* @param string $key
* @return bool
*/
public function has($key)
public function has($key): bool
{
return Arr::has($this->items, $key);
}
Expand All @@ -48,7 +48,7 @@ public function has($key)
* @param mixed $default
* @return mixed
*/
public function get($key, $default = null)
public function get($key, $default = null): mixed
{
if (is_array($key)) {
return $this->getMany($key);
Expand All @@ -63,7 +63,7 @@ public function get($key, $default = null)
* @param array<string|int,mixed> $keys
* @return array<string,mixed>
*/
public function getMany($keys)
public function getMany($keys): array
{
$config = [];

Expand Down Expand Up @@ -197,7 +197,7 @@ public function collection(string $key, $default = null): Collection
* @param mixed $value
* @return void
*/
public function set($key, $value = null)
public function set($key, $value = null): void
{
$keys = is_array($key) ? $key : [$key => $value];

Expand All @@ -213,7 +213,7 @@ public function set($key, $value = null)
* @param mixed $value
* @return void
*/
public function prepend($key, $value)
public function prepend($key, $value): void
{
$array = $this->get($key, []);

Expand All @@ -229,7 +229,7 @@ public function prepend($key, $value)
* @param mixed $value
* @return void
*/
public function push($key, $value)
public function push($key, $value): void
{
$array = $this->get($key, []);

Expand All @@ -243,7 +243,7 @@ public function push($key, $value)
*
* @return array
*/
public function all()
public function all(): array
{
return $this->items;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Console/ConfigCacheCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function __construct(Filesystem $files)
*
* @throws \LogicException
*/
public function handle()
public function handle(): void
{
$this->callSilent('config:clear');

Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Console/ConfigMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ protected function getOptions(): array
*
* @return array
*/
protected function promptForMissingArgumentsUsing()
protected function promptForMissingArgumentsUsing(): array
{
return [
'name' => 'What should the configuration file be named?',
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Session/CacheBasedSessionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function gc($lifetime): int
*
* @return \Illuminate\Contracts\Cache\Repository
*/
public function getCache()
public function getCache(): CacheContract
{
return $this->cache;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Session/EncryptedStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ protected function prepareForStorage($data)
*
* @return \Illuminate\Contracts\Encryption\Encrypter
*/
public function getEncrypter()
public function getEncrypter(): EncrypterContract
{
return $this->encrypter;
}
Expand Down
14 changes: 7 additions & 7 deletions src/Illuminate/Session/SessionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ protected function buildEncryptedSession($handler)
*
* @return bool
*/
public function shouldBlock()
public function shouldBlock(): bool
{
return $this->config->get('session.block', false);
}
Expand All @@ -231,7 +231,7 @@ public function shouldBlock()
*
* @return string|null
*/
public function blockDriver()
public function blockDriver(): ?string
{
return $this->config->get('session.block_store');
}
Expand All @@ -241,7 +241,7 @@ public function blockDriver()
*
* @return int
*/
public function defaultRouteBlockLockSeconds()
public function defaultRouteBlockLockSeconds(): int
{
return $this->config->get('session.block_lock_seconds', 10);
}
Expand All @@ -251,7 +251,7 @@ public function defaultRouteBlockLockSeconds()
*
* @return int
*/
public function defaultRouteBlockWaitSeconds()
public function defaultRouteBlockWaitSeconds(): int
{
return $this->config->get('session.block_wait_seconds', 10);
}
Expand All @@ -261,7 +261,7 @@ public function defaultRouteBlockWaitSeconds()
*
* @return array
*/
public function getSessionConfig()
public function getSessionConfig(): array
{
return $this->config->get('session');
}
Expand All @@ -271,7 +271,7 @@ public function getSessionConfig()
*
* @return string|null
*/
public function getDefaultDriver()
public function getDefaultDriver(): ?string
{
return $this->config->get('session.driver');
}
Expand All @@ -282,7 +282,7 @@ public function getDefaultDriver()
* @param string $name
* @return void
*/
public function setDefaultDriver($name)
public function setDefaultDriver($name): void
{
$this->config->set('session.driver', $name);
}
Expand Down