feat(phpactor): override the default template

Make classes final and enable strict types by default.

Refs: #41
This commit is contained in:
Oliver Davies 2023-05-31 13:48:52 +01:00
parent f933b7c2e1
commit 62751a9974
2 changed files with 11 additions and 0 deletions

View file

@ -1,4 +1,5 @@
code_transform.class_new.variants:
default: default
drupal-functional-test: drupal-functional-test
drupal-kernel-test: drupal-kernel-test
drupal-unit-test: drupal-unit-test

View file

@ -0,0 +1,10 @@
<?php
declare(strict_types=1);
namespace {{ prototype.namespace }};
{% for class in prototype.classes %}
final class {{ class.name }} {
}
{% endfor %}