laravel / tinker

Powerful REPL for the Laravel framework.
https://laravel.com/docs/artisan#tinker
MIT License
7.34k stars 130 forks source link

assert always returns true #138

Closed khalyomede closed 2 years ago

khalyomede commented 2 years ago

Description:

assert() always returns true.

Steps To Reproduce:

Run this code, it always returns true

/var/www/html# php artisan tinker
Psy Shell v0.9.12 (PHP 7.4.3 — cli) by Justin Hileman
>>> $test = null;
=> null
>>> assert($test instanceof PDO);
=> true
>>>
driesvints commented 2 years ago

Hi there,

Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!

Thanks.

bobthecow commented 2 years ago

Probably https://www.php.net/manual/en/ini.core.php#ini.zend.assertions