Skip to content

Commit

Permalink
Merge pull request #4136 from MGatner/stanfix
Browse files Browse the repository at this point in the history
PHPStan Fixes
  • Loading branch information
samsonasik committed Jan 22, 2021
2 parents a6b542a + 3429928 commit 2da3a86
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test-phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
paths:
- 'app/**'
- 'system/**'
- composer.json
- phpstan.neon.dist
push:
branches:
Expand All @@ -18,6 +19,7 @@ on:
paths:
- 'app/**'
- 'system/**'
- composer.json
- phpstan.neon.dist

jobs:
Expand Down
2 changes: 1 addition & 1 deletion app/Config/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ class App extends BaseConfig
* (empty string) means no SameSite attribute will be set on cookies. If
* set to `None`, `$cookieSecure` must also be set.
*
* @var string
* @var string 'Lax'|'None'|'Strict'
*/
public $cookieSameSite = 'Lax';

Expand Down
2 changes: 1 addition & 1 deletion app/Config/Security.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class Security extends BaseConfig
* Defaults to `Lax` as recommended in this link:
* @see https://portswigger.net/web-security/csrf/samesite-cookies
*
* @var string
* @var string 'Lax'|'None'|'Strict'
*/
public $samesite = 'Lax';
}
1 change: 0 additions & 1 deletion system/CodeIgniter.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ protected function initializeKint()
// If we have KINT_DIR it means it's already loaded via composer
if (! defined('KINT_DIR'))
{
// @phpstan-ignore-next-line
spl_autoload_register(function ($class) {
$class = explode('\\', $class);

Expand Down
2 changes: 1 addition & 1 deletion system/Security/Security.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class Security implements SecurityInterface
* Defaults to `Lax` as recommended in this link:
* @see https://portswigger.net/web-security/csrf/samesite-cookies
*
* @var string
* @var string 'Lax'|'None'|'Strict'
*/
protected $samesite = 'Lax';

Expand Down
2 changes: 1 addition & 1 deletion system/Session/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class Session implements SessionInterface
* Cookie SameSite setting as described in RFC6265
* Must be 'None', 'Lax' or 'Strict'.
*
* @var string
* @var string 'Lax'|'None'|'Strict'
*/
protected $cookieSameSite = 'Lax';

Expand Down

0 comments on commit 2da3a86

Please sign in to comment.