Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Find whether the type of a variable is integer
<?php is_int(mixed $value): bool
<?php         $this->logMessages[] = LogMessage::fromMessageLoggedEvent($event);



        if (is_int($this->maxLogs)) {

            $this->logMessages = array_slice($this->logMessages, -$this->maxLogs);

        }

    }
<?php     {

        $this->queries[] = Query::fromQueryExecutedEvent($queryExecuted, $this->reportBindings);



        if (is_int($this->maxQueries)) {

            $this->queries = array_slice($this->queries, -$this->maxQueries);

        }

    }
<?php         $testResult = $this->artisan('flare:test');



        is_int($testResult)

            ? $this->assertSame(0, $testResult)

            : $testResult->assertExitCode(0);

    }