mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-23 03:34:22 -05:00
update: BbcodeInput compnent
- fixes phpstan errors
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user