Skip to content

Commit

Permalink
rector
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Feb 8, 2024
1 parent 35e2cc1 commit 4083799
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/rector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ name: rector
jobs:
rector:
uses: yiisoft/actions/.github/workflows/rector.yml@master
secrets:
token: ${{ secrets.YIISOFT_GITHUB_TOKEN }}
with:
os: >-
['ubuntu-latest']
php: >-
['8.2']
['8.3']
4 changes: 2 additions & 2 deletions src/Flash/FlashInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function getAll(): array;
* regardless if it is accessed or not. If true (default value), the flash message will remain until after
* it is accessed.
*/
public function set(string $key, $value = true, bool $removeAfterAccess = true): void;
public function set(string $key, mixed $value = true, bool $removeAfterAccess = true): void;

/**
* Adds a flash message.
Expand All @@ -54,7 +54,7 @@ public function set(string $key, $value = true, bool $removeAfterAccess = true):
* regardless if it is accessed or not. If true (default value), the flash message will remain until after
* it is accessed.
*/
public function add(string $key, $value = true, bool $removeAfterAccess = true): void;
public function add(string $key, mixed $value = true, bool $removeAfterAccess = true): void;

/**
* Removes a flash message.
Expand Down
8 changes: 3 additions & 5 deletions src/SessionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ interface SessionInterface
*
* @return mixed
*/
public function get(string $key, $default = null);
public function get(string $key, mixed $default = null);

/**
* Write value into session.
*
* @param string $key Key to write value to.
* @param mixed $value Value to write.
*/
public function set(string $key, $value): void;
public function set(string $key, mixed $value): void;

/**
* Write session and close it.
Expand Down Expand Up @@ -74,8 +74,6 @@ public function all(): array;

/**
* Remove value from session.
*
* @param string $key
*/
public function remove(string $key): void;

Expand All @@ -96,7 +94,7 @@ public function has(string $key): bool;
*
* @return mixed The value.
*/
public function pull(string $key, $default = null);
public function pull(string $key, mixed $default = null);

/**
* Remove session data from runtime.
Expand Down

0 comments on commit 4083799

Please sign in to comment.