fix(tia): fingerprint the generated configuration like the restarter does (#2065)

* fix(tia): fingerprint the generated configuration like the restarter does

* test(tia): pass one configuration option per call

---------

Co-authored-by: Punyapal Shah <mrpunyapal@gmail.com>
This commit is contained in:
Jhon Farias
2026-11-23 10:57:13 +01:00
committed by GitHub
parent 8c87eefebf
commit 4c886b16d1
7 changed files with 104 additions and 6 deletions
+5 -1
View File
@@ -26,7 +26,7 @@ final readonly class ConfigurationFile
/**
* @param array<int, string> $arguments
*/
public static function fromArguments(array $arguments): self
public static function fromArguments(array $arguments, ?string $generatedPath = null): self
{
try {
$configuration = new Builder(EventFacade::emitter())->fromParameters(self::configurationParameters($arguments));
@@ -41,6 +41,10 @@ final readonly class ConfigurationFile
$file = new XmlConfigurationFileFinder()->find($configuration);
$path = $file === false ? false : realpath($file);
if ($path !== false && $generatedPath !== null && $path === realpath($generatedPath)) {
return self::projectDefault();
}
return new self($path === false ? null : $path, false);
}