[ 'code' => ' */ $intOrFalse = 10; $int = (int) $intOrFalse; ', 'assertions' => [ '$int===' => '0|int<10, 20>', ], ]; yield 'SKIPPED-castTrueOrIntToInt' => [ 'code' => ' */ $intOrTrue = 10; $int = (int) $intOrTrue; ', 'assertions' => [ '$int===' => '1|int<10, 20>', ], ]; yield 'SKIPPED-castBoolOrIntToInt' => [ 'code' => ' */ $intOrBool = 10; $int = (int) $intOrBool; ', 'assertions' => [ '$int===' => '0|1|int<10, 20>', ], ]; yield 'castObjectWithPropertiesToArray' => [ 'code' => ' [ '$a===' => 'array{a: int, b: string, ...}', ], ]; } }