Skip to content

Commit

Permalink
prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
spiralbot committed Sep 29, 2022
1 parent 6baac56 commit 8245d07
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions composer.json
Expand Up @@ -28,12 +28,12 @@
],
"require": {
"php": ">=8.1",
"spiral/core": "^3.1",
"spiral/files": "^3.1",
"spiral/core": "^3.0.2",
"spiral/files": "^3.0.2",
"psr/event-dispatcher": "^1.0"
},
"require-dev": {
"spiral/boot": "^3.1",
"spiral/boot": "^3.0.2",
"phpunit/phpunit": "^9.5.20",
"mockery/mockery": "^1.5",
"vimeo/psalm": "^4.27"
Expand All @@ -50,7 +50,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "3.1.x-dev"
"dev-master": "3.0.x-dev"
}
},
"config": {
Expand Down
3 changes: 2 additions & 1 deletion src/Engine/Native/NativeEngine.php
Expand Up @@ -20,9 +20,10 @@ public function __construct(
$this->extension = $extension;
}

public function compile(string $path, ContextInterface $context): void
public function compile(string $path, ContextInterface $context): mixed
{
// doing nothing, native views can not be compiled
return null;
}

public function reset(string $path, ContextInterface $context): void
Expand Down
5 changes: 2 additions & 3 deletions src/EngineInterface.php
Expand Up @@ -28,19 +28,18 @@ public function getLoader(): LoaderInterface;
* @throws EngineException
* @throws LoaderException
*/
public function compile(string $path, ContextInterface $context);
public function compile(string $path, ContextInterface $context): mixed;

/**
* Reset view cache.
*/
public function reset(string $path, ContextInterface $context);
public function reset(string $path, ContextInterface $context): void;

/**
* Get instance of view class associated with view path (path can include namespace). Engine
* must attempt to use existed cache if such presented (or compile view directly if cache has
* been disabled).
*
*
* @throws EngineException
* @throws LoaderException
*/
Expand Down

0 comments on commit 8245d07

Please sign in to comment.