Skip to content

Commit

Permalink
Add attribute #[AllowDynamicProperties]
Browse files Browse the repository at this point in the history
With coming soon PHP 8.4 it would be required for creating dynamic properties in class use of attribute #[AllowDynamicProperties]. The class Template is used as abstract class for typed latte templates and creating dynamic properties a basic function of the class
  • Loading branch information
mildabre authored Oct 20, 2024
1 parent 2fa9a9d commit 840e3fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Bridges/ApplicationLatte/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@

use Latte;
use Nette;

use AllowDynamicProperties;

/**
* Latte powered template.
*/
#[AllowDynamicProperties]
class Template implements Nette\Application\UI\Template
{
private ?string $file = null;
Expand Down

0 comments on commit 840e3fc

Please sign in to comment.