Skip to content

Commit 08a3948

Browse files
committed
Updated htmx to version 2.0.8
1 parent db18c46 commit 08a3948

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Release Notes for Sprig
22

3-
## 3.7.2 - Unreleased
3+
## 3.7.2 - 2026-02-17
44

5+
- Updated htmx to version 2.0.8 ([changelog](https://github.com/bigskysoftware/htmx/blob/master/CHANGELOG.md#208---2025-10-24)).
56
- The Sprig Playground is now only available in environments in which `devMode` is enabled, unless the `enablePlaygroundWhenDevModeDisabled` config setting is explicitly set to `true`.
67

78
## 3.7.1 - 2025-09-14

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"craftcms/cms": "^5.0",
1010
"nystudio107/craft-code-editor": "^1.0",
1111
"nystudio107/craft-twig-sandbox": "^5.0.2",
12-
"putyourlightson/craft-sprig-core": "^3.7.1"
12+
"putyourlightson/craft-sprig-core": "^3.7.2"
1313
},
1414
"require-dev": {
1515
"craftcms/ecs": "dev-main",

src/services/PlaygroundService.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ public function get(int $id): ?PlaygroundModel
4646
*/
4747
public function getSamples(): array
4848
{
49+
/** @var string|false $index */
4950
$index = Craft::getAlias(self::SAMPLES_DIR_PATH . 'index.json');
50-
5151
if ($index === false) {
5252
return [];
5353
}
@@ -68,8 +68,9 @@ public function getSamples(): array
6868

6969
foreach ($samplesConfig as $config) {
7070
$playground = new PlaygroundModel($config);
71-
$componentPath = Craft::getAlias(self::SAMPLES_DIR_PATH . $playground->component);
7271

72+
/** @var string|false $componentPath */
73+
$componentPath = Craft::getAlias(self::SAMPLES_DIR_PATH . $playground->component);
7374
if ($componentPath === false) {
7475
continue;
7576
}

0 commit comments

Comments
 (0)