feat(phpactor): override the default template
Make classes final and enable strict types by default. Refs: #41
This commit is contained in:
parent
f933b7c2e1
commit
62751a9974
|
@ -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
|
||||
|
|
10
config/phpactor/templates/default/SourceCode.php.twig
Normal file
10
config/phpactor/templates/default/SourceCode.php.twig
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace {{ prototype.namespace }};
|
||||
|
||||
{% for class in prototype.classes %}
|
||||
final class {{ class.name }} {
|
||||
}
|
||||
{% endfor %}
|
Loading…
Reference in a new issue