1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-04 08:10:07 +01:00
Saibotk 7ef4bac510 fix(php): ignore warnings in CLI parsing
When running PHP with extensions like imagick, sometimes the extension needs a rebuild after `brew upgrade`.
Otherwise, it will throw a warning:
```
Warning: Version warning: Imagick was compiled against ImageMagick version 1809 but version 1810 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0
```

This warning is also printed, within the shell executions in Valet.
But we use the output of those PHP CLI invocations.
With those warnings being printed out, the parsing on the output fails and Valet cannot be used until the pecl extension is rebuilt.

With this patch, all CLI PHP invocations use ` -d error_reporting=1`.
This suppresses warnings, but will still report errors.

It makes valet more robust in case a system package update causes warnings.
2025-07-24 14:39:20 +02:00
2024-09-26 12:16:58 +08:00
2025-06-19 04:42:20 +00:00
2025-06-18 21:26:19 -07:00
2021-12-03 15:40:15 +01:00
2023-02-13 15:39:44 -05:00
2025-05-14 15:25:19 +00:00
2021-12-03 15:40:15 +01:00
2022-09-08 13:37:17 +02:00
2024-01-18 14:54:56 +01:00
2023-03-15 14:47:50 -04:00
2025-07-24 14:39:20 +02:00

Build Status Total Downloads Latest Stable Version License

Introduction

Valet is a Laravel development environment for Mac minimalists. No Vagrant, no /etc/hosts file. You can even share your sites publicly using local tunnels. Yeah, we like it too.

Laravel Valet configures your Mac to always run Nginx in the background when your machine starts. Then, using DnsMasq, Valet proxies all requests on the *.test domain to point to sites installed on your local machine.

In other words, a blazing fast Laravel development environment that uses roughly 7mb of RAM. Valet isn't a complete replacement for Vagrant or Homestead, but provides a great alternative if you want flexible basics, prefer extreme speed, or are working on a machine with a limited amount of RAM.

Official Documentation

Documentation for Valet can be found on the Laravel website.

Contributing

Thank you for considering contributing to Valet! You can read the contribution guide here.

Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

License

Laravel Valet is open-sourced software licensed under the MIT license.

Description
MIRROR. Laravel's Valet repository on GitHub. (Because it is relevant to PHP Monitor as a dependency, I mirror it here.)
https://laravel.com/docs/master/valet Readme 152 MiB
Languages
PHP 98.7%
Shell 1.2%