@@ -181,15 +181,35 @@ private function analyseHash(LoopInterface $loop, OutputInterface $output, int $
181181 }
182182 $ tmpDir = sys_get_temp_dir () . '/phpstan-issue-bot- ' . $ result ->getHash ();
183183 @mkdir ($ tmpDir , 0777 , true );
184+
185+ $ options = $ result ->getOptions ();
186+ $ parameters = [
187+ 'level ' => $ result ->getLevel (),
188+ 'inferPrivatePropertyTypeFromConstructor ' => $ options ['inferPrivatePropertyTypeFromConstructor ' ] ?? true ,
189+ 'treatPhpDocTypesAsCertain ' => $ result ->isTreatPhpDocTypesAsCertain (),
190+ 'phpVersion ' => $ phpVersion ,
191+ 'tmpDir ' => $ tmpDir ,
192+ 'rememberPossiblyImpureFunctionValues ' => $ options ['rememberPossiblyImpureFunctionValues ' ] ?? true ,
193+ 'checkBenevolentUnionTypes ' => $ options ['checkBenevolentUnionTypes ' ] ?? false ,
194+ 'checkTooWideReturnTypesInProtectedAndPublicMethods ' => $ options ['checkTooWideTypesInProtectedAndPublicMethods ' ] ?? false ,
195+ 'checkTooWideParameterOutInProtectedAndPublicMethods ' => $ options ['checkTooWideTypesInProtectedAndPublicMethods ' ] ?? false ,
196+ 'checkTooWideThrowTypesInProtectedAndPublicMethods ' => $ options ['checkTooWideTypesInProtectedAndPublicMethods ' ] ?? false ,
197+ ];
198+ $ parameters ['exceptions ' ] = [
199+ 'implicitThrows ' => $ options ['implicitThrows ' ] ?? true ,
200+ 'reportUncheckedExceptionDeadCatch ' => $ options ['reportUncheckedExceptionDeadCatch ' ] ?? false ,
201+ 'uncheckedExceptionClasses ' => $ options ['uncheckedExceptionClasses ' ] ?? [],
202+ 'checkedExceptionClasses ' => $ options ['checkedExceptionClasses ' ] ?? [],
203+ 'check ' => [
204+ 'missingCheckedExceptionInThrows ' => $ options ['missingCheckedExceptionInThrows ' ] ?? false ,
205+ 'tooWideThrowType ' => $ options ['tooWideThrowType ' ] ?? false ,
206+ 'tooWideImplicitThrowType ' => $ options ['tooWideImplicitThrowType ' ] ?? false ,
207+ ],
208+ ];
209+
184210 $ neon = Neon::encode ([
185211 'includes ' => $ configFiles ,
186- 'parameters ' => [
187- 'level ' => $ result ->getLevel (),
188- 'inferPrivatePropertyTypeFromConstructor ' => true ,
189- 'treatPhpDocTypesAsCertain ' => $ result ->isTreatPhpDocTypesAsCertain (),
190- 'phpVersion ' => $ phpVersion ,
191- 'tmpDir ' => $ tmpDir ,
192- ],
212+ 'parameters ' => $ parameters ,
193213 ]);
194214
195215 $ hash = $ result ->getHash ();
0 commit comments