Skip to content

Commit 3757fdc

Browse files
committed
Merge branch '5.x'
# Conflicts: # src/View/Antlers/Language/Runtime/NodeProcessor.php # tests/Antlers/Runtime/PhpEnabledTest.php
2 parents abcf18f + bfd4050 commit 3757fdc

33 files changed

Lines changed: 300 additions & 32 deletions

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# Release Notes
22

3+
## 5.56.0 (2025-05-20)
4+
5+
### What's new
6+
- Add `moveQuietly` method to `Asset` class [#11804](https://github.com/statamic/cms/issues/11804) by @duncanmcclean
7+
- Add --header option to static warm command [#11763](https://github.com/statamic/cms/issues/11763) by @ChristianPraiss
8+
9+
### What's fixed
10+
- Fix values being wrapped in arrays causing multiple selected options [#11630](https://github.com/statamic/cms/issues/11630) by @simonworkhouse
11+
- Hide read only and computed fields in user creation wizard [#11635](https://github.com/statamic/cms/issues/11635) by @duncanmcclean
12+
- Fix storing submissions of forms with 'files' fieldtypes even when disabled [#11794](https://github.com/statamic/cms/issues/11794) by @andjsch
13+
- Corrects Antlers error logging with PHP nodes [#11800](https://github.com/statamic/cms/issues/11800) by @JohnathonKoster
14+
- Fix facade PhpDocs for better understanding by Laravel Idea [#11798](https://github.com/statamic/cms/issues/11798) by @adelf
15+
- Correct issue with nested noparse and partials [#11801](https://github.com/statamic/cms/issues/11801) by @JohnathonKoster
16+
- Prepare value & operator before passing to Eloquent Query Builder [#11805](https://github.com/statamic/cms/issues/11805) by @duncanmcclean
17+
18+
19+
320
## 5.55.0 (2025-05-14)
421

522
### What's new

src/Assets/Asset.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,13 @@ public function move($folder, $filename = null)
775775
return $this;
776776
}
777777

778+
public function moveQuietly($folder, $filename = null)
779+
{
780+
$this->withEvents = false;
781+
782+
return $this->move(...func_get_args());
783+
}
784+
778785
/**
779786
* Replace an asset and/or its references where necessary.
780787
*

src/Console/Commands/StaticWarm.php

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class StaticWarm extends Command
4242
{--include= : Only warm specific URLs}
4343
{--exclude= : Exclude specific URLs}
4444
{--max-requests= : Maximum number of requests to warm}
45+
{--header=* : Set custom header (e.g. "Authorization: Bearer your_token")}
4546
';
4647

4748
protected $description = 'Warms the static cache by visiting all URLs';
@@ -167,8 +168,10 @@ private function getRelativeUri(int $index): string
167168

168169
private function requests()
169170
{
170-
return $this->uris()->map(function ($uri) {
171-
return new Request('GET', $uri);
171+
$headers = $this->parseHeaders($this->option('header'));
172+
173+
return $this->uris()->map(function ($uri) use ($headers) {
174+
return new Request('GET', $uri, $headers);
172175
})->all();
173176
}
174177

@@ -374,4 +377,25 @@ protected function additionalUris(): Collection
374377

375378
return $uris->map(fn ($uri) => URL::makeAbsolute($uri));
376379
}
380+
381+
private function parseHeaders($headerOptions): array
382+
{
383+
$headers = [];
384+
if (empty($headerOptions)) {
385+
return $headers;
386+
}
387+
if (! is_array($headerOptions)) {
388+
$headerOptions = [$headerOptions];
389+
}
390+
foreach ($headerOptions as $header) {
391+
if (strpos($header, ':') !== false) {
392+
[$key, $value] = explode(':', $header, 2);
393+
$headers[trim($key)] = trim($value);
394+
} else {
395+
$this->line("<fg=yellow;options=bold>Warning:</> Invalid header format: '$header'. Headers should be in 'Key: Value' format.");
396+
}
397+
}
398+
399+
return $headers;
400+
}
377401
}

src/Facades/Blink.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* @method static mixed once($key, callable $callable)
2525
* @method static mixed|\Spatie\Blink\Blink store($name = 'default')
2626
*
27-
* @see Statamic\Support\Blink
27+
* @see \Statamic\Support\Blink
2828
*/
2929
class Blink extends Facade
3030
{

src/Facades/Blueprint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* @method static \Illuminate\Support\Collection getAdditionalNamespaces()
2626
*
2727
* @see \Statamic\Fields\BlueprintRepository
28-
* @see \Statamic\Fields\Blueprint
28+
* @link \Statamic\Fields\Blueprint
2929
*/
3030
class Blueprint extends Facade
3131
{

src/Facades/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* @method static \Illuminate\Support\Collection getComputedCallbacks($collection)
2323
*
2424
* @see CollectionRepository
25-
* @see \Statamic\Entries\Collection
25+
* @link \Statamic\Entries\Collection
2626
*/
2727
class Collection extends Facade
2828
{

src/Facades/Entry.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
* @method static void updateParents(\Statamic\Entries\Collection $collection, $ids = null)
2727
*
2828
* @see \Statamic\Stache\Repositories\EntryRepository
29-
* @see \Statamic\Stache\Query\EntryQueryBuilder
30-
* @see \Statamic\Entries\EntryCollection
31-
* @see \Statamic\Entries\Entry
29+
* @link \Statamic\Stache\Query\EntryQueryBuilder
30+
* @link \Statamic\Entries\EntryCollection
31+
* @link \Statamic\Entries\Entry
3232
*/
3333
class Entry extends Facade
3434
{

src/Facades/Fieldset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* @method static void addNamespace(string $namespace, string $directory)
2020
*
2121
* @see \Statamic\Fields\FieldsetRepository
22-
* @see \Statamic\Fields\Fieldset
22+
* @link \Statamic\Fields\Fieldset
2323
*/
2424
class Fieldset extends Facade
2525
{

src/Facades/Form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* @method static ExporterRepository exporters()
2121
*
2222
* @see \Statamic\Contracts\Forms\FormRepository
23-
* @see \Statamic\Forms\Form
23+
* @link \Statamic\Forms\Form
2424
*/
2525
class Form extends Facade
2626
{

src/Facades/FormSubmission.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* @method static SubmissionContract make()
2020
*
2121
* @see \Statamic\Contracts\Forms\SubmissionRepository
22-
* @see \Statamic\Forms\Submission
22+
* @link \Statamic\Forms\Submission
2323
*/
2424
class FormSubmission extends Facade
2525
{

0 commit comments

Comments
 (0)