Skip to content

Commit

Permalink
Add PHP 8.4 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Slamdunk committed Sep 24, 2024
1 parent a139776 commit ebe6e59
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

strategy:
matrix:
php: ['5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
php: ['5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']

steps:
- name: Checkout Code
Expand Down
2 changes: 1 addition & 1 deletion src/Whoops/Handler/PrettyPageHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ public function addDataTableCallback($label, /* callable */ $callback)
throw new InvalidArgumentException('Expecting callback argument to be callable');
}

$this->extraTables[$label] = function (\Whoops\Inspector\InspectorInterface $inspector = null) use ($callback) {
$this->extraTables[$label] = function (?\Whoops\Inspector\InspectorInterface $inspector = null) use ($callback) {
try {
$result = call_user_func($callback, $inspector);

Expand Down
2 changes: 1 addition & 1 deletion src/Whoops/Run.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ final class Run implements RunInterface
*/
private $frameFilters = [];

public function __construct(SystemFacade $system = null)
public function __construct(?SystemFacade $system = null)
{
$this->system = $system ?: new SystemFacade;
$this->inspectorFactory = new InspectorFactory();
Expand Down
2 changes: 1 addition & 1 deletion src/Whoops/Util/TemplateHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public function slug($original)
*
* @param string $template
*/
public function render($template, array $additionalVariables = null)
public function render($template, ?array $additionalVariables = null)
{
$variables = $this->getVariables();

Expand Down

0 comments on commit ebe6e59

Please sign in to comment.