Skip to content

Commit

Permalink
typed
Browse files Browse the repository at this point in the history
  • Loading branch information
rodber committed Apr 21, 2024
1 parent b0d656a commit e11b7b1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions demo/Actions/Greet.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
namespace Chevere\Demo\Actions;

use Chevere\Action\Action;
use Chevere\Parameter\Interfaces\ParameterInterface;
use Chevere\Parameter\Interfaces\StringParameterInterface;
use function Chevere\Parameter\string;

class Greet extends Action
{
public static function return(): ParameterInterface
public static function return(): StringParameterInterface
{
return string('/^Hello, /');
}
Expand Down
4 changes: 2 additions & 2 deletions demo/Actions/ImageResize.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
namespace Chevere\Demo\Actions;

use Chevere\Action\Action;
use Chevere\Parameter\Interfaces\ParameterInterface;
use Chevere\Parameter\Interfaces\StringParameterInterface;
use function Chevere\Parameter\string;

class ImageResize extends Action
{
public static function return(): ParameterInterface
public static function return(): StringParameterInterface
{
return string();
}
Expand Down
4 changes: 2 additions & 2 deletions demo/Actions/StoreFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
namespace Chevere\Demo\Actions;

use Chevere\Action\Action;
use Chevere\Parameter\Interfaces\ParameterInterface;
use Chevere\Parameter\Interfaces\NullParameterInterface;
use function Chevere\Parameter\null;

class StoreFile extends Action
{
public static function return(): ParameterInterface
public static function return(): NullParameterInterface
{
return null();
}
Expand Down

0 comments on commit e11b7b1

Please sign in to comment.