- Edited
I'm having issues to suppress a warning that should not come.
The following code produces no output (as expected) when run, but shows an warning on VS Code only when devsense is on.
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
$command = new \MongoDB\Driver\BulkWrite();
I have no other PHP extensions installed.
I'm running VS Code on WSL: Debian.
VSCode PHP Ouput:
PHP extension started.
Found PHP, version: 8.2.5, Xdebug: not loaded.
PHP Language Server Started.
VSCode PHP language server output:
PHP Tools server started.
PID: 6313
Processing files: *.php; *.phtml
Content and run:
leo@MyComp:~$ cat test.php
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
$command = new \MongoDB\Driver\BulkWrite();
leo@MyComp:~$ php test.php