Skip to content

Commit

Permalink
Update to php 8.0+ (#48)
Browse files Browse the repository at this point in the history
* Update to php 8.0+

* 8.2 but support earlier also
  • Loading branch information
MrEssex authored Dec 17, 2024
1 parent ecca49e commit e9504ee
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@
"optimize-autoloader": true
},
"require": {
"php": ">=7.4",
"php": "^8.0",
"ext-json": "*",
"packaged/config": "~1.5",
"packaged/context": "~1.4",
"packaged/context": "^1.11",
"packaged/context-i18n": "~1.0",
"packaged/di-container": "~1.0",
"packaged/event": "~1.2",
"packaged/figlet": "~0.0",
"packaged/helpers": "^2.15",
"packaged/http": "~1.18",
"packaged/http": "^1.21.0||^2.0.0",
"packaged/routing": "~2.1",
"packaged/ui": "~1.0",
"packaged/docblock": "~1.1",
Expand Down
2 changes: 1 addition & 1 deletion tests/Controller/ControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
use Packaged\Context\Context;
use Packaged\Http\Request;
use Packaged\Http\Response;
use Packaged\Http\Responses\RedirectResponse;
use Packaged\Routing\ConditionHandler;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpFoundation\RedirectResponse;

class ControllerTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Http/LazyHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
use Cubex\Routing\LazyHandler;
use Packaged\Context\Context;
use Packaged\Http\Request;
use Packaged\Http\Response;
use Packaged\Routing\Handler\FuncHandler;
use PHPUnit\Framework\TestCase;
use stdClass;
use Symfony\Component\HttpFoundation\Response;

class LazyHandlerTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Supporting/Controller/TestController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
use Packaged\Context\Context;
use Packaged\Http\Response;
use Packaged\Http\Responses\AccessDeniedResponse;
use Packaged\Http\Responses\RedirectResponse;
use Packaged\Routing\Handler\FuncHandler;
use Symfony\Component\HttpFoundation\RedirectResponse;

class TestController extends AuthedController
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Supporting/Http/TestResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function getSendResult()
return $this->_output;
}

public function sendContent()
public function sendContent(): static
{
$this->_output = $this->content;
return $this;
Expand Down

0 comments on commit e9504ee

Please sign in to comment.