Skip to content

Commit

Permalink
Fix deprecation warning in PHP 8
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominick Johnson committed Aug 28, 2024
1 parent 7849cb6 commit 4537e69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Then, when interacting with the engine to resolve objects, you can specify the r
// Templates implicitly use `Resolvable::TYPE_TEMPLATE`
$engine->make('index');
// Controllers (a resolvable type unique to Contemplate) can be called implicitly using the detected HTTP method
$engine->callController('some_form');
$engine->autoCallHttpController('some_form');
// Or explicitly using a built-in type
$engine->callController('some_form', Resolvable::TYPE_CONTROLLER_HTTP_GET);
// Or explicitly using a custom type
Expand Down
2 changes: 2 additions & 0 deletions src/Extension/ContemplateTwig/ContemplateTwig.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

use \DMJohnson\Contemplate\Extension\ExtensionInterface;
use \DMJohnson\Contemplate\Engine;
use \DMJohnson\Contemplate\Template\Resolvable;
use \Twig\Environment;

/**
Expand All @@ -24,6 +25,7 @@ class ContemplateTwig implements ExtensionInterface

private Environment $twig;
private Engine $contemplate;
public Resolvable $template;

public function __construct(private array $twigEnvironmentOptions)
{
Expand Down

0 comments on commit 4537e69

Please sign in to comment.