@@ -325,18 +325,18 @@ public function isSmallerThan(Type $otherType): TrinaryLogic
325325 return TrinaryLogic::extremeIdentity ($ minIsSmaller , $ maxIsSmaller );
326326 }
327327
328- public function isSmallerThanOrEqual (Type $ otherType ): TrinaryLogic
328+ public function isSmallerThanOrEqual (Type $ otherType, PhpVersion $ phpVersion ): TrinaryLogic
329329 {
330330 if ($ this ->min === null ) {
331331 $ minIsSmaller = TrinaryLogic::createYes ();
332332 } else {
333- $ minIsSmaller = (new ConstantIntegerType ($ this ->min ))->isSmallerThanOrEqual ($ otherType );
333+ $ minIsSmaller = (new ConstantIntegerType ($ this ->min ))->isSmallerThanOrEqual ($ otherType, $ phpVersion );
334334 }
335335
336336 if ($ this ->max === null ) {
337337 $ maxIsSmaller = TrinaryLogic::createNo ();
338338 } else {
339- $ maxIsSmaller = (new ConstantIntegerType ($ this ->max ))->isSmallerThanOrEqual ($ otherType );
339+ $ maxIsSmaller = (new ConstantIntegerType ($ this ->max ))->isSmallerThanOrEqual ($ otherType, $ phpVersion );
340340 }
341341
342342 return TrinaryLogic::extremeIdentity ($ minIsSmaller , $ maxIsSmaller );
@@ -359,18 +359,18 @@ public function isGreaterThan(Type $otherType): TrinaryLogic
359359 return TrinaryLogic::extremeIdentity ($ minIsSmaller , $ maxIsSmaller );
360360 }
361361
362- public function isGreaterThanOrEqual (Type $ otherType ): TrinaryLogic
362+ public function isGreaterThanOrEqual (Type $ otherType, PhpVersion $ phpVersion ): TrinaryLogic
363363 {
364364 if ($ this ->min === null ) {
365365 $ minIsSmaller = TrinaryLogic::createNo ();
366366 } else {
367- $ minIsSmaller = $ otherType ->isSmallerThanOrEqual ((new ConstantIntegerType ($ this ->min )));
367+ $ minIsSmaller = $ otherType ->isSmallerThanOrEqual ((new ConstantIntegerType ($ this ->min )), $ phpVersion );
368368 }
369369
370370 if ($ this ->max === null ) {
371371 $ maxIsSmaller = TrinaryLogic::createYes ();
372372 } else {
373- $ maxIsSmaller = $ otherType ->isSmallerThanOrEqual ((new ConstantIntegerType ($ this ->max )));
373+ $ maxIsSmaller = $ otherType ->isSmallerThanOrEqual ((new ConstantIntegerType ($ this ->max )), $ phpVersion );
374374 }
375375
376376 return TrinaryLogic::extremeIdentity ($ minIsSmaller , $ maxIsSmaller );
0 commit comments