This project uses PSR-12 with consistent brace placement. This means that the opening brace is always on the same line, even for class and method declarations.
This project uses PHP-CS-Fixer and PHPStan. You can invoke them using make
:
make php-cs-fixer
make phpstan
Lexer\TokenEmulator
. Take inspiration from existing classes.Lexer\Emulative
.Lexer\EmulativeTest
. You'll want to modify
provideTestReplaceKeywords()
for new reserved keywords and provideTestLexNewFeatures()
for
other emulations.grammar/php.y
. Regenerate the parser by running
php grammar/rebuildParsers.php
. Use --debug
if there are conflicts.pFooBar()
method in PrettyPrinter\Standard
.test/code/parser
and test/code/prettyPrinter
.PrettyPrinterAbstract
. Add a test in test/code/formatPreservation
.NodeVisitor\NameResolver
. Test it in NodeVisitor\NameResolverTest
.Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )