update: BbcodeInput compnent

- fixes phpstan errors
This commit is contained in:
HDVinnie
2024-06-21 14:04:43 -04:00
parent 9a9318e8f5
commit 09daf021b0
2 changed files with 2 additions and 22 deletions
+2 -2
View File
@@ -34,12 +34,12 @@ class BbcodeInput extends Component
public string $contentHtml = '';
final public function mount($name, $label, $required = false, $content = null): void
final public function mount(string $name, string $label, bool $required = false, string $content = null): void
{
$this->name = $name;
$this->label = $label;
$this->isRequired = $required;
$this->contentBbcode = $content === null ? (old($name) ?? '') : htmlspecialchars_decode((string) $content);
$this->contentBbcode = $content === null ? (old($name) ?? '') : htmlspecialchars_decode($content);
}
final public function updatedIsPreviewEnabled(): void
-20
View File
@@ -330,26 +330,6 @@ parameters:
count: 1
path: app/Http/Livewire/BackupPanel.php
-
message: "#^Method App\\\\Http\\\\Livewire\\\\BbcodeInput\\:\\:mount\\(\\) has parameter \\$content with no type specified\\.$#"
count: 1
path: app/Http/Livewire/BbcodeInput.php
-
message: "#^Method App\\\\Http\\\\Livewire\\\\BbcodeInput\\:\\:mount\\(\\) has parameter \\$label with no type specified\\.$#"
count: 1
path: app/Http/Livewire/BbcodeInput.php
-
message: "#^Method App\\\\Http\\\\Livewire\\\\BbcodeInput\\:\\:mount\\(\\) has parameter \\$name with no type specified\\.$#"
count: 1
path: app/Http/Livewire/BbcodeInput.php
-
message: "#^Method App\\\\Http\\\\Livewire\\\\BbcodeInput\\:\\:mount\\(\\) has parameter \\$required with no type specified\\.$#"
count: 1
path: app/Http/Livewire/BbcodeInput.php
-
message: "#^Method App\\\\Http\\\\Livewire\\\\BlockIpAddress\\:\\:ipAddresses\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
count: 1