Skip to content
Open
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
3 changes: 2 additions & 1 deletion src/Annotation/Cookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
use Attribute;
use Ray\Di\Di\Qualifier;

#[Attribute, Qualifier]
#[Attribute]
#[Qualifier]
final class Cookie
{
}
3 changes: 2 additions & 1 deletion src/Annotation/DeleteCookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
use Attribute;
use Ray\Di\Di\Qualifier;

#[Attribute, Qualifier]
#[Attribute]
#[Qualifier]
final class DeleteCookie
{
}
6 changes: 2 additions & 4 deletions src/AuraSessionInject.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@

use Aura\Session\Session;

/**
* @deprecated Use PHP 8.0: Class constructor property promotion instead
*/
/** @deprecated Use PHP 8.0: Class constructor property promotion instead */
trait AuraSessionInject
{
/** @var Session */
protected $session;

public function setSession(Session $session)
public function setSession(Session $session): void
{
$this->session = $session;
}
Expand Down
2 changes: 1 addition & 1 deletion src/AuraSessionModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
class AuraSessionModule extends AbstractModule
{
/**
* {@inheritdoc}
* {@inheritDoc}
*/
protected function configure()
{
Expand Down
3 changes: 2 additions & 1 deletion src/CookieProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
class CookieProvider implements ProviderInterface
{
/**
* {@inheritdoc}
* {@inheritDoc}
*
* @SuppressWarnings(PHPMD.Superglobals)
* @psalm-taint-source input
*/
public function get()
{
Expand Down
2 changes: 1 addition & 1 deletion src/DeleteCookieInvoker.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __invoke(string $name, array $params): void
'',
time() - 42000,
$params['path'],
$params['domain']
$params['domain'],
);
}
}
15 changes: 8 additions & 7 deletions src/SessionProvider.php
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Ray.AuraSessionModule package.
*
* @license http://opensource.org/licenses/MIT MIT
*/

namespace Ray\AuraSessionModule;

use Aura\Session\SessionFactory;
use Ray\Di\ProviderInterface;

/**
* @deprecated
*/
/** @deprecated */
class SessionProvider implements ProviderInterface
{
/**
* {@inheritdoc}
* {@inheritDoc}
*
* @SuppressWarnings(PHPMD.Superglobals)
* @psalm-taint-source input
*/
public function get()
{
return (new SessionFactory)->newInstance($_COOKIE);
return (new SessionFactory())->newInstance($_COOKIE);
}
}