sanchescom / php-wifi

Cross-platform PHP library for scan, connect and disconnect Wi-Fi networks.
GNU General Public License v3.0
51 stars 14 forks source link

Error executing command ./vendor/bin/wifi list #14

Open rijotech opened 5 years ago

rijotech commented 5 years ago

bi@linux-pc:/usr/local/etc/home/html/php-wifi $ sudo ./vendor/bin/wifi list ☠ TypeError: Argument 1 passed to Sanchescom\WiFi\System\AbstractNetworks::explodeAvailableNetworks() must be of the type string, int given, called in /usr/local/etc/home/html/php-wifi/vendor/sanchescom/php-wifi/src/System/Linux/Networks.php on line 52 and defined in /usr/local/etc/home/html/php-wifi/vendor/sanchescom/php-wifi/src/System/AbstractNetworks.php:65 Stack trace:

0 /usr/local/etc/home/html/php-wifi/vendor/sanchescom/php-wifi/src/System/Linux/Networks.php(52): Sanchescom\WiFi\System\AbstractNetworks->explodeAvailableNetworks(0)

1 /usr/local/etc/home/html/php-wifi/vendor/sanchescom/php-wifi/src/System/AbstractNetworks.php(42): Sanchescom\WiFi\System\Linux\Networks->extractingNetworks(0)

2 /usr/local/etc/home/html/php-wifi/vendor/sanchescom/php-wifi/src/WiFi.php(48): Sanchescom\WiFi\System\AbstractNetworks->scan()

3 /usr/local/etc/home/html/php-wifi/vendor/sanchescom/php-wifi/bin/wifi(74): Sanchescom\WiFi\WiFi::scan()

4 /usr/local/etc/home/html/php-wifi/vendor/splitbrain/php-cli/src/CLI.php(175): WiFi->main(Object(splitbrain\phpcli\Options))

5 /usr/local/etc/home/html/php-wifi/vendor/splitbrain/php-cli/src/CLI.php(97): splitbrain\phpcli\CLI->execute()

6 /usr/local/etc/home/html/php-wifi/vendor/sanchescom/php-wifi/bin/wifi(134): splitbrain\phpcli\CLI->run()

7 {main}