public static function getInt($value) { if (Inspekt::isArrayOrArrayObject($value)) { return Inspekt::walkArray($value, 'getInt'); } else { return (int) $value; } }
/** * Generated from @assert ('A1)45@*(&UR)HQ)W.0000(*(HG))') === 0. */ public function testGetInt2() { $this->assertSame(0, Inspekt::getInt('A1)45@*(&UR)HQ)W.0000(*(HG))')); }