Skip to content

Commit 9298f31

Browse files
phpstan improvements
1 parent 45af465 commit 9298f31

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Components/BaseComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ public function render()
290290
// if we have inheritable attributes on the component (attributes passed in from another attribute bag)
291291
if (isset($data['inheritedAttributes'])) {
292292
// we merge them in right at the end
293-
$data['attributes'] = $data['attributes']->merge($this->inheritedAttributes);
293+
$data['attributes'] = $data['attributes']->merge($data['inheritedAttributes']);
294294
}
295295

296296
// now we render the view

src/Components/Radio.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ class Radio extends BaseComponent
1515
*/
1616
public function __construct(
1717
public string $id,
18-
public ?string $help = null,
1918
public string $label,
2019
public string $name,
2120
public string $value,
21+
public ?string $help = null,
2222
) {
2323
// constructor promotion handles the rest
2424
}

src/Styles/Tailwind/Mixins/BaseMixin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static function with(...$options)
2828
*
2929
* @return void
3030
*/
31-
public function __construct(...$options)
31+
public final function __construct(...$options)
3232
{
3333
$this->tailwind = new Tailwind();
3434

0 commit comments

Comments
 (0)