Minimal PHP Code Causing Issue
I've got several warnings when trying to run fractor. As no changes are made at all (and I guess there should be a lot of changes) it seems it doesn't work at all.
PHP Warning: DOMDocument::loadXML(): Namespace prefix f on for is not defined in Entity, line: 7 in /var/www/html/vendor/a9f/fractor-xml/src/XmlFileProcessor.php on line 49
PHP Warning: DOMDocument::loadXML(): Namespace prefix f on if is not defined in Entity, line: 8 in /var/www/html/vendor/a9f/fractor-xml/src/XmlFileProcessor.php on line 49
PHP Warning: DOMDocument::loadXML(): Namespace prefix f on format.date is not defined in Entity, line: 17 in /var/www/html/vendor/a9f/fractor-xml/src/XmlFileProcessor.php on line 49
<?php
declare(strict_types=1);
use a9f\Fractor\Configuration\FractorConfiguration;
use a9f\Fractor\ValueObject\Indent;
use a9f\FractorFluid\Configuration\FluidProcessorOption;
use a9f\FractorTypoScript\Configuration\TypoScriptProcessorOption;
use a9f\FractorXml\Configuration\XmlProcessorOption;
use a9f\FractorYaml\Configuration\YamlProcessorOption;
use a9f\Typo3Fractor\Set\Typo3SetList;
use Helmich\TypoScriptParser\Parser\Printer\PrettyPrinterConditionTermination;
use Helmich\TypoScriptParser\Parser\Printer\PrettyPrinterConfiguration;
return FractorConfiguration::configure()
->withPaths([
__DIR__ . '/config',
__DIR__ . '/extensions/${ext_name}',
__DIR__ . '/composer.json',
])
->withSets([
Typo3SetList::${set_name},
])
->withSkip([
__DIR__ . '/extensions/${ext_name}/Configuration/ExtensionBuilder/',
__DIR__ . '/extensions/${ext_name}/Documentation.tmpl/',
])
->withOptions([
XmlProcessorOption::INDENT_CHARACTER => Indent::STYLE_SPACE,
XmlProcessorOption::INDENT_SIZE => 4,
TypoScriptProcessorOption::INDENT_SIZE => 4,
TypoScriptProcessorOption::INDENT_CHARACTER => PrettyPrinterConfiguration::INDENTATION_STYLE_SPACES,
TypoScriptProcessorOption::ADD_CLOSING_GLOBAL => false,
TypoScriptProcessorOption::INCLUDE_EMPTY_LINE_BREAKS => true,
TypoScriptProcessorOption::INDENT_CONDITIONS => true,
TypoScriptProcessorOption::CONDITION_TERMINATION => PrettyPrinterConditionTermination::Keep,
FluidProcessorOption::ALLOWED_FILE_EXTENSIONS => ['html', 'txt'],
TypoScriptProcessorOption::ALLOWED_FILE_EXTENSIONS => ['typoscript', 'tsconfig', 'ts'],
YamlProcessorOption::ALLOWED_FILE_EXTENSIONS => ['yaml', 'yml'],
]);
Applied rules
my config I'm running Sets 10,11,12
Expected Behaviour
change deprecated code
Package Version
0.5.10
PHP Version
8.3.
TYPO3 Version
12.4.43
Notes
No response
Minimal PHP Code Causing Issue
I've got several warnings when trying to run fractor. As no changes are made at all (and I guess there should be a lot of changes) it seems it doesn't work at all.
Applied rules
my config I'm running Sets 10,11,12
Expected Behaviour
change deprecated code
Package Version
0.5.10
PHP Version
8.3.
TYPO3 Version
12.4.43
Notes
No response