mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 10:28:13 +00:00
Update PHP dependencies (#16263)
* Update PHP dependencies: php-http/discovery (1.19.2 => 1.19.4) symfony/finder (v6.4.8 => v6.4.10) symfony/polyfill-mbstring (v1.29.0 => v1.30.0) symfony/var-dumper (v6.4.4 => v6.4.10) maximebf/debugbar (v1.20.2 => v1.22.3) symfony/polyfill-php80 (v1.29.0 => v1.30.0) symfony/polyfill-ctype (v1.29.0 => v1.30.0) phpoption/phpoption (1.9.2 => 1.9.3) graham-campbell/result-type (v1.1.2 => v1.1.3) vlucas/phpdotenv (v5.6.0 => v5.6.1) symfony/css-selector (v6.4.3 => v6.4.8) symfony/polyfill-uuid (v1.29.0 => v1.30.0) symfony/uid (v6.4.3 => v6.4.8) symfony/routing (v6.4.3 => v6.4.10) symfony/polyfill-php72 (v1.29.0 => v1.30.0) symfony/polyfill-intl-normalizer (v1.29.0 => v1.30.0) symfony/polyfill-intl-idn (v1.29.0 => v1.30.0) symfony/mime (v6.4.3 => v6.4.9) symfony/event-dispatcher (v6.4.3 => v6.4.8) symfony/mailer (v6.4.4 => v6.4.9) symfony/polyfill-php83 (v1.29.0 => v1.30.0) symfony/http-foundation (v6.4.4 => v6.4.10) symfony/error-handler (v6.4.4 => v6.4.10) symfony/http-kernel (v6.4.4 => v6.4.10) symfony/polyfill-intl-grapheme (v1.29.0 => v1.30.0) symfony/string (v6.4.8 => v6.4.10) symfony/console (v6.4.8 => v6.4.10) brick/math (0.11.0 => 0.12.1) ramsey/uuid (4.7.5 => 4.7.6) symfony/translation (v6.4.4 => v6.4.10) nesbot/carbon (2.72.3 => 2.72.5) monolog/monolog (3.5.0 => 3.7.0) league/flysystem (3.24.0 => 3.28.0) league/flysystem-local (3.23.1 => 3.28.0) dflydev/dot-access-data (v3.0.2 => v3.0.3) league/commonmark (2.4.2 => 2.5.1) laravel/framework (v10.46.0 => v10.48.18) laravel/prompts (v0.1.16 => v0.1.24) barryvdh/laravel-debugbar (v3.10.5 => v3.13.5) phpstan/phpdoc-parser (1.26.0 => 1.29.1) nikic/php-parser (v5.0.1 => v5.1.0) doctrine/event-manager (2.0.0 => 2.0.1) doctrine/dbal (3.8.2 => 3.8.6) composer/pcre (3.1.4 => 3.2.0) composer/class-map-generator (1.3.3 => 1.3.4) symfony/polyfill-php81 (v1.29.0 => v1.30.0) symfony/polyfill-php73 (v1.29.0 => v1.30.0) symfony/filesystem (v6.4.8 => v6.4.9) seld/jsonlint (1.10.2 => 1.11.0) justinrainbow/json-schema (v5.2.13 => 5.3.0) composer/semver (3.4.0 => 3.4.2) composer/ca-bundle (1.5.0 => 1.5.1) fico7489/laravel-pivot (3.0.11 => 3.0.12) firebase/php-jwt (v6.10.1) symfony/stopwatch (v6.4.3 => v6.4.8) symfony/options-resolver (v6.4.0 => v6.4.8) sebastian/diff (4.0.5 => 4.0.6) react/event-loop (v1.5.0) evenement/evenement (v3.0.2) react/stream (v1.4.0) react/cache (v1.2.0) react/dns (v1.13.0) react/socket (v1.16.0) react/child-process (v0.6.5) fidry/cpu-core-counter (1.1.0) clue/ndjson-react (v1.3.0) friendsofphp/php-cs-fixer (v3.51.0 => v3.61.1) guzzlehttp/promises (2.0.2 => 2.0.3) psr/http-factory (1.0.2 => 1.1.0) php-http/message (1.16.0 => 1.16.1) php-http/promise (1.3.0 => 1.3.1) influxdata/influxdb-client-php (3.4.0 => 3.6.0) guzzlehttp/psr7 (2.6.2 => 2.7.0) guzzlehttp/guzzle (7.8.1 => 7.9.2) phpstan/phpstan (1.10.59 => 1.11.9) larastan/larastan (v2.9.2 => v2.9.8) symfony/http-client (v6.4.4 => v6.4.10) spomky-labs/pki-framework (1.1.1 => 1.2.1) paragonie/sodium_compat (v1.20.0 => v2.0.1) paragonie/constant_time_encoding (v2.6.3 => v3.0.0) web-token/jwt-library (3.3.1 => 3.4.6) web-token/jwt-util-ecc (3.3.0 => 3.4.6) web-token/jwt-signature-algorithm-ecdsa (3.3.0 => 3.4.6) web-token/jwt-signature (3.3.0 => 3.4.6) web-token/jwt-key-mgmt (3.3.0 => 3.4.6) psy/psysh (v0.12.0 => v0.12.4) laravel/ui (v4.4.0 => v4.5.2) librenms/laravel-vue-i18n-generator (dev-master c662202 => dev-master 8c8bb89) mews/purifier (3.4.1 => 3.4.2) mockery/mockery (1.6.7 => 1.6.12) nunomaduro/laravel-console-summary (v1.10.0 => v1.11.1) phpseclib/phpseclib (3.0.36 => 3.0.39) php-amqplib/php-amqplib (v3.6.1 => v3.7.0) php-parallel-lint/php-parallel-lint (v1.3.2 => v1.4.0) phpstan/phpstan-deprecation-rules (1.1.4 => 1.2.0) sebastian/resource-operations (3.0.3 => 3.0.4) sebastian/global-state (5.0.6 => 5.0.7) sebastian/exporter (4.0.5 => 4.0.6) sebastian/cli-parser (1.0.1 => 1.0.2) theseer/tokenizer (1.2.2 => 1.2.3) phpunit/php-code-coverage (9.2.30 => 9.2.31) phar-io/manifest (2.0.3 => 2.0.4) myclabs/deep-copy (1.11.1 => 1.12.0) phpunit/phpunit (9.6.17 => 9.6.20) laravel/socialite (v5.12.1 => v5.15.1) socialiteproviders/manager (v4.5.1 => v4.6.0) spatie/error-solutions (1.1.1) spatie/backtrace (1.5.3 => 1.6.2) spatie/flare-client-php (1.4.4 => 1.8.0) spatie/ignition (1.12.0 => 1.15.0) spatie/laravel-ignition (2.4.2 => 2.8.0) symfony/yaml (v6.4.3 => v6.4.8) * Update dusk version to fix bug * Update base DuskTestCase to match upstream * Minor phpstan type changes * add more types
This commit is contained in:
parent
a61cd16f86
commit
c572448ca0
@ -65,7 +65,7 @@
|
|||||||
"fakerphp/faker": "^1.9.1",
|
"fakerphp/faker": "^1.9.1",
|
||||||
"friendsofphp/php-cs-fixer": "^v3.4",
|
"friendsofphp/php-cs-fixer": "^v3.4",
|
||||||
"larastan/larastan": "^2.9",
|
"larastan/larastan": "^2.9",
|
||||||
"laravel/dusk": "^7.4",
|
"laravel/dusk": "^8.2.2",
|
||||||
"mockery/mockery": "^1.4.4",
|
"mockery/mockery": "^1.4.4",
|
||||||
"nunomaduro/collision": "^7.0",
|
"nunomaduro/collision": "^7.0",
|
||||||
"php-parallel-lint/php-parallel-lint": "^1.1",
|
"php-parallel-lint/php-parallel-lint": "^1.1",
|
||||||
|
2311
composer.lock
generated
2311
composer.lock
generated
File diff suppressed because it is too large
Load Diff
@ -2,16 +2,13 @@
|
|||||||
|
|
||||||
namespace Database\Factories;
|
namespace Database\Factories;
|
||||||
|
|
||||||
use App\Models\AlertSchedule;
|
|
||||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||||
|
|
||||||
/** @extends Factory<AlertSchedule> */
|
/** @extends Factory<\App\Models\AlertSchedule> */
|
||||||
class AlertScheduleFactory extends Factory
|
class AlertScheduleFactory extends Factory
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Define the model's default state.
|
* Define the model's default state.
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
*/
|
||||||
public function definition(): array
|
public function definition(): array
|
||||||
{
|
{
|
||||||
|
@ -5,6 +5,7 @@ namespace Database\Factories;
|
|||||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||||
use LibreNMS\Alert\Transport;
|
use LibreNMS\Alert\Transport;
|
||||||
|
|
||||||
|
/** @extends Factory<\App\Models\AlertTransport> */
|
||||||
class AlertTransportFactory extends Factory
|
class AlertTransportFactory extends Factory
|
||||||
{
|
{
|
||||||
public function definition(): array
|
public function definition(): array
|
||||||
|
@ -2,16 +2,13 @@
|
|||||||
|
|
||||||
namespace Database\Factories;
|
namespace Database\Factories;
|
||||||
|
|
||||||
use App\Models\BgpPeer;
|
|
||||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||||
|
|
||||||
/** @extends Factory<BgpPeer> */
|
/** @extends Factory<\App\Models\BgpPeer> */
|
||||||
class BgpPeerFactory extends Factory
|
class BgpPeerFactory extends Factory
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Define the model's default state.
|
* Define the model's default state.
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
*/
|
||||||
public function definition(): array
|
public function definition(): array
|
||||||
{
|
{
|
||||||
|
@ -2,16 +2,13 @@
|
|||||||
|
|
||||||
namespace Database\Factories;
|
namespace Database\Factories;
|
||||||
|
|
||||||
use App\Models\Bill;
|
|
||||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||||
|
|
||||||
/** @extends Factory<Bill> */
|
/** @extends Factory<\App\Models\Bill> */
|
||||||
class BillFactory extends Factory
|
class BillFactory extends Factory
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Define the model's default state.
|
* Define the model's default state.
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
*/
|
||||||
public function definition(): array
|
public function definition(): array
|
||||||
{
|
{
|
||||||
|
@ -2,16 +2,13 @@
|
|||||||
|
|
||||||
namespace Database\Factories;
|
namespace Database\Factories;
|
||||||
|
|
||||||
use App\Models\Component;
|
|
||||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||||
|
|
||||||
/** @extends Factory<Component> */
|
/** @extends Factory<\App\Models\Component> */
|
||||||
class ComponentFactory extends Factory
|
class ComponentFactory extends Factory
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Define the model's default state.
|
* Define the model's default state.
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
*/
|
||||||
public function definition(): array
|
public function definition(): array
|
||||||
{
|
{
|
||||||
|
@ -2,16 +2,13 @@
|
|||||||
|
|
||||||
namespace Database\Factories;
|
namespace Database\Factories;
|
||||||
|
|
||||||
use App\Models\Device;
|
|
||||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||||
|
|
||||||
/** @extends Factory<Device> */
|
/** @extends Factory<\App\Models\Device> */
|
||||||
class DeviceFactory extends Factory
|
class DeviceFactory extends Factory
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Define the model's default state.
|
* Define the model's default state.
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
*/
|
||||||
public function definition(): array
|
public function definition(): array
|
||||||
{
|
{
|
||||||
|
@ -2,16 +2,13 @@
|
|||||||
|
|
||||||
namespace Database\Factories;
|
namespace Database\Factories;
|
||||||
|
|
||||||
use App\Models\DeviceGroup;
|
|
||||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||||
|
|
||||||
/** @extends Factory<DeviceGroup> */
|
/** @extends Factory<\App\Models\DeviceGroup> */
|
||||||
class DeviceGroupFactory extends Factory
|
class DeviceGroupFactory extends Factory
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Define the model's default state.
|
* Define the model's default state.
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
*/
|
||||||
public function definition(): array
|
public function definition(): array
|
||||||
{
|
{
|
||||||
|
@ -8,13 +8,11 @@ use App\Models\Port;
|
|||||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||||
use LibreNMS\Util\IPv4;
|
use LibreNMS\Util\IPv4;
|
||||||
|
|
||||||
/** @extends Factory<Ipv4Address> */
|
/** @extends Factory<\App\Models\Ipv4Address> */
|
||||||
class Ipv4AddressFactory extends Factory
|
class Ipv4AddressFactory extends Factory
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Define the model's default state.
|
* Define the model's default state.
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
*/
|
||||||
public function definition(): array
|
public function definition(): array
|
||||||
{
|
{
|
||||||
|
@ -2,16 +2,13 @@
|
|||||||
|
|
||||||
namespace Database\Factories;
|
namespace Database\Factories;
|
||||||
|
|
||||||
use App\Models\Ipv4Network;
|
|
||||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||||
|
|
||||||
/** @extends Factory<Ipv4Network> */
|
/** @extends Factory<\App\Models\Ipv4Network> */
|
||||||
class Ipv4NetworkFactory extends Factory
|
class Ipv4NetworkFactory extends Factory
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Define the model's default state.
|
* Define the model's default state.
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
*/
|
||||||
public function definition(): array
|
public function definition(): array
|
||||||
{
|
{
|
||||||
|
@ -2,16 +2,13 @@
|
|||||||
|
|
||||||
namespace Database\Factories;
|
namespace Database\Factories;
|
||||||
|
|
||||||
use App\Models\Location;
|
|
||||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||||
|
|
||||||
/** @extends Factory<Location> */
|
/** @extends Factory<\App\Models\Location> */
|
||||||
class LocationFactory extends Factory
|
class LocationFactory extends Factory
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Define the model's default state.
|
* Define the model's default state.
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
*/
|
||||||
public function definition(): array
|
public function definition(): array
|
||||||
{
|
{
|
||||||
|
@ -2,16 +2,13 @@
|
|||||||
|
|
||||||
namespace Database\Factories;
|
namespace Database\Factories;
|
||||||
|
|
||||||
use App\Models\OspfNbr;
|
|
||||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||||
|
|
||||||
/** @extends Factory<OspfNbr> */
|
/** @extends Factory<\App\Models\OspfNbr> */
|
||||||
class OspfNbrFactory extends Factory
|
class OspfNbrFactory extends Factory
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Define the model's default state.
|
* Define the model's default state.
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
*/
|
||||||
public function definition(): array
|
public function definition(): array
|
||||||
{
|
{
|
||||||
|
@ -2,16 +2,13 @@
|
|||||||
|
|
||||||
namespace Database\Factories;
|
namespace Database\Factories;
|
||||||
|
|
||||||
use App\Models\OspfPort;
|
|
||||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||||
|
|
||||||
/** @extends Factory<OspfPort> */
|
/** @extends Factory<\App\Models\OspfPort> */
|
||||||
class OspfPortFactory extends Factory
|
class OspfPortFactory extends Factory
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Define the model's default state.
|
* Define the model's default state.
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
*/
|
||||||
public function definition(): array
|
public function definition(): array
|
||||||
{
|
{
|
||||||
|
@ -2,16 +2,13 @@
|
|||||||
|
|
||||||
namespace Database\Factories;
|
namespace Database\Factories;
|
||||||
|
|
||||||
use App\Models\Port;
|
|
||||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||||
|
|
||||||
/** @extends Factory<Port> */
|
/** @extends Factory<\App\Models\Port> */
|
||||||
class PortFactory extends Factory
|
class PortFactory extends Factory
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Define the model's default state.
|
* Define the model's default state.
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
*/
|
||||||
public function definition(): array
|
public function definition(): array
|
||||||
{
|
{
|
||||||
|
@ -2,16 +2,13 @@
|
|||||||
|
|
||||||
namespace Database\Factories;
|
namespace Database\Factories;
|
||||||
|
|
||||||
use App\Models\Sensor;
|
|
||||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||||
|
|
||||||
/** @extends Factory<Sensor> */
|
/** @extends Factory<\App\Models\Sensor> */
|
||||||
class SensorFactory extends Factory
|
class SensorFactory extends Factory
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Define the model's default state.
|
* Define the model's default state.
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
*/
|
||||||
public function definition(): array
|
public function definition(): array
|
||||||
{
|
{
|
||||||
|
@ -2,18 +2,15 @@
|
|||||||
|
|
||||||
namespace Database\Factories;
|
namespace Database\Factories;
|
||||||
|
|
||||||
use App\Models\Syslog;
|
|
||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||||
use LibreNMS\Enum\SyslogSeverity;
|
use LibreNMS\Enum\SyslogSeverity;
|
||||||
|
|
||||||
/** @extends Factory<Syslog> */
|
/** @extends Factory<\App\Models\Syslog> */
|
||||||
class SyslogFactory extends Factory
|
class SyslogFactory extends Factory
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Define the model's default state.
|
* Define the model's default state.
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
*/
|
||||||
public function definition(): array
|
public function definition(): array
|
||||||
{
|
{
|
||||||
|
@ -10,8 +10,6 @@ class UserFactory extends Factory
|
|||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Define the model's default state.
|
* Define the model's default state.
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
*/
|
||||||
public function definition(): array
|
public function definition(): array
|
||||||
{
|
{
|
||||||
|
@ -2,17 +2,14 @@
|
|||||||
|
|
||||||
namespace Database\Factories;
|
namespace Database\Factories;
|
||||||
|
|
||||||
use App\Models\Vminfo;
|
|
||||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||||
use LibreNMS\Enum\PowerState;
|
use LibreNMS\Enum\PowerState;
|
||||||
|
|
||||||
/** @extends Factory<Vminfo> */
|
/** @extends Factory<\App\Models\Vminfo> */
|
||||||
class VminfoFactory extends Factory
|
class VminfoFactory extends Factory
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Define the model's default state.
|
* Define the model's default state.
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
*/
|
||||||
public function definition(): array
|
public function definition(): array
|
||||||
{
|
{
|
||||||
|
@ -12,7 +12,6 @@ return new class extends Migration
|
|||||||
*/
|
*/
|
||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
/** @phpstan-ignore-next-line */
|
|
||||||
$widgets = UserWidget::where('widget_id', 1)->get();
|
$widgets = UserWidget::where('widget_id', 1)->get();
|
||||||
foreach ($widgets as $widget) {
|
foreach ($widgets as $widget) {
|
||||||
$settings = $widget->settings;
|
$settings = $widget->settings;
|
||||||
@ -32,7 +31,6 @@ return new class extends Migration
|
|||||||
*/
|
*/
|
||||||
public function down(): void
|
public function down(): void
|
||||||
{
|
{
|
||||||
/** @phpstan-ignore-next-line */
|
|
||||||
$widgets = UserWidget::where('widget_id', 1)->get();
|
$widgets = UserWidget::where('widget_id', 1)->get();
|
||||||
foreach ($widgets as $widget) {
|
foreach ($widgets as $widget) {
|
||||||
$settings = $widget->settings;
|
$settings = $widget->settings;
|
||||||
|
@ -19,7 +19,6 @@ return new class extends Migration
|
|||||||
$table->unsignedTinyInteger('opstatus')->default(0)->after('opstatus_old');
|
$table->unsignedTinyInteger('opstatus')->default(0)->after('opstatus_old');
|
||||||
});
|
});
|
||||||
|
|
||||||
/** @phpstan-ignore-next-line */
|
|
||||||
foreach (\App\Models\Sla::where('opstatus_old', '>', 0)->select(['sla_id', 'opstatus_old'])->lazy() as $sla) {
|
foreach (\App\Models\Sla::where('opstatus_old', '>', 0)->select(['sla_id', 'opstatus_old'])->lazy() as $sla) {
|
||||||
/** @phpstan-ignore-next-line */
|
/** @phpstan-ignore-next-line */
|
||||||
$sla->opstatus = $sla->opstatus_old;
|
$sla->opstatus = $sla->opstatus_old;
|
||||||
|
@ -48,15 +48,4 @@ abstract class DuskTestCase extends BaseTestCase
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Determine whether the Dusk command has disabled headless mode.
|
|
||||||
*
|
|
||||||
* @return bool
|
|
||||||
*/
|
|
||||||
protected function hasHeadlessDisabled()
|
|
||||||
{
|
|
||||||
return isset($_SERVER['DUSK_HEADLESS_DISABLED']) ||
|
|
||||||
isset($_ENV['DUSK_HEADLESS_DISABLED']);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user