Skip to content

Commit dce6b3c

Browse files
author
Sergii Kauk
authored
Merge branch 'master' into cloudflared
2 parents ca1518a + e67f5b0 commit dce6b3c

28 files changed

+206
-111
lines changed

.github/ISSUE_TEMPLATE/1_Bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Bug Report
2-
description: "Report a general library issue."
2+
description: "Report something that's broken."
33
body:
44
- type: markdown
55
attributes:

.github/workflows/coding-standards.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: fix code styling
22

3-
on: [push]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- '*.x'
48

59
jobs:
610
lint:

CHANGELOG.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,29 @@
11
# Release Notes
22

3-
## [Unreleased](https://github.com/laravel/valet/compare/v4.6.1...master)
3+
## [Unreleased](https://github.com/laravel/valet/compare/v4.7.1...master)
4+
5+
## [v4.7.1](https://github.com/laravel/valet/compare/v4.7.0...v4.7.1) - 2024-06-25
6+
7+
* Require Trusting CA when securing sites by [@adrum](https://github.com/adrum) in https://github.com/laravel/valet/pull/1488
8+
9+
## [v4.7.0](https://github.com/laravel/valet/compare/v4.6.3...v4.7.0) - 2024-06-18
10+
11+
* Trust CA Certificate only by [@adrum](https://github.com/adrum) in https://github.com/laravel/valet/pull/1463
12+
* Allow specifying php version to restart by [@N-Silbernagel](https://github.com/N-Silbernagel) in https://github.com/laravel/valet/pull/1469
13+
* Update KirbyValetDriver.php by [@Werbschaft](https://github.com/Werbschaft) in https://github.com/laravel/valet/pull/1471
14+
* fix: Warning: Constant VALET_* already defined in X by [@NickSdot](https://github.com/NickSdot) in https://github.com/laravel/valet/pull/1485
15+
* Add values() call to reset keys after modifying paths by [@adriaanzon](https://github.com/adriaanzon) in https://github.com/laravel/valet/pull/1477
16+
* Adding support for Nette Framework. by [@antonL95](https://github.com/antonL95) in https://github.com/laravel/valet/pull/1486
17+
18+
## [v4.6.3](https://github.com/laravel/valet/compare/v4.6.2...v4.6.3) - 2024-05-21
19+
20+
* add server name to valet.conf by [@Oleg339](https://github.com/Oleg339) in https://github.com/laravel/valet/pull/1458
21+
22+
## [v4.6.2](https://github.com/laravel/valet/compare/v4.6.1...v4.6.2) - 2024-05-07
23+
24+
* Add quotes around $PHP by [@drbyte](https://github.com/drbyte) in https://github.com/laravel/valet/pull/1473
25+
* Support Illuminate:11 and Symfony:7 by [@drbyte](https://github.com/drbyte) in https://github.com/laravel/valet/pull/1481
26+
* Ignore invalid paths by [@ahmedash95](https://github.com/ahmedash95) in https://github.com/laravel/valet/pull/1478
427

528
## [v4.6.1](https://github.com/laravel/valet/compare/v4.6.0...v4.6.1) - 2024-01-01
629

cli/Valet/Brew.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ class Brew
3838

3939
const BREW_DISABLE_AUTO_CLEANUP = 'HOMEBREW_NO_INSTALL_CLEANUP=1';
4040

41-
public function __construct(public CommandLine $cli, public Filesystem $files)
42-
{
43-
}
41+
public function __construct(public CommandLine $cli, public Filesystem $files) {}
4442

4543
/**
4644
* Ensure the formula exists in the current Homebrew configuration.

cli/Valet/CommandLine.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ public function runAsUser(string $command, ?callable $onError = null): string
5151
*/
5252
public function runCommand(string $command, ?callable $onError = null): string
5353
{
54-
$onError = $onError ?: function () {
55-
};
54+
$onError = $onError ?: function () {};
5655

5756
// Symfony's 4.x Process component has deprecated passing a command string
5857
// to the constructor, but older versions (which Valet's Composer

cli/Valet/Composer.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66

77
class Composer
88
{
9-
public function __construct(public CommandLine $cli)
10-
{
11-
}
9+
public function __construct(public CommandLine $cli) {}
1210

1311
public function installed(string $namespacedPackage): bool
1412
{

cli/Valet/Configuration.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
class Configuration
66
{
7-
public function __construct(public Filesystem $files)
8-
{
9-
}
7+
public function __construct(public Filesystem $files) {}
108

119
/**
1210
* Install the Valet configuration file.
@@ -117,7 +115,7 @@ public function addPath(string $path, bool $prepend = false): void
117115
$this->write(tap($this->read(), function (&$config) use ($path, $prepend) {
118116
$method = $prepend ? 'prepend' : 'push';
119117

120-
$config['paths'] = collect($config['paths'])->{$method}($path)->unique()->all();
118+
$config['paths'] = collect($config['paths'])->{$method}($path)->unique()->values()->all();
121119
}));
122120
}
123121

cli/Valet/Diagnose.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@ class Diagnose
5555

5656
public $progressBar;
5757

58-
public function __construct(public CommandLine $cli, public Filesystem $files)
59-
{
60-
}
58+
public function __construct(public CommandLine $cli, public Filesystem $files) {}
6159

6260
/**
6361
* Run diagnostics.

cli/Valet/DnsMasq.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ class DnsMasq
1010

1111
public $resolverPath = '/etc/resolver';
1212

13-
public function __construct(public Brew $brew, public CommandLine $cli, public Filesystem $files, public Configuration $configuration)
14-
{
15-
}
13+
public function __construct(public Brew $brew, public CommandLine $cli, public Filesystem $files, public Configuration $configuration) {}
1614

1715
/**
1816
* Install and configure DnsMasq.

cli/Valet/Drivers/Specific/KirbyValetDriver.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@ public function frontControllerPath(string $sitePath, string $siteName, string $
4848
$indexPath = $sitePath.'/panel/index.php';
4949
}
5050

51+
// add this block
52+
if (preg_match('/^\/(?!(kirby|site|content)\/).+\.php$/', $uri)) {
53+
if (
54+
$this->isActualFile($sitePath.$uri) ||
55+
$isAboveWebroot && $this->isActualFile($sitePath.'/public'.$uri)
56+
) {
57+
$scriptName = $uri;
58+
$indexPath = $sitePath.$scriptName;
59+
}
60+
}
61+
5162
$sitePathPrefix = ($isAboveWebroot) ? $sitePath.'/public' : $sitePath;
5263

5364
$_SERVER['SERVER_NAME'] = $_SERVER['HTTP_HOST'];

0 commit comments

Comments
 (0)