mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-22 11:54:41 +02:00
Use typed properties
This commit is contained in:
parent
548ec2ea50
commit
51e05a8669
216 changed files with 603 additions and 698 deletions
|
@ -9,8 +9,8 @@ use Twig\TwigFunction;
|
|||
|
||||
final class AttachmentExtension extends AbstractExtension
|
||||
{
|
||||
protected $attachmentURLGenerator;
|
||||
protected $FAIconGenerator;
|
||||
protected AttachmentURLGenerator $attachmentURLGenerator;
|
||||
protected FAIconGenerator $FAIconGenerator;
|
||||
|
||||
public function __construct(AttachmentURLGenerator $attachmentURLGenerator, FAIconGenerator $FAIconGenerator)
|
||||
{
|
||||
|
@ -18,7 +18,7 @@ final class AttachmentExtension extends AbstractExtension
|
|||
$this->FAIconGenerator = $FAIconGenerator;
|
||||
}
|
||||
|
||||
public function getFunctions()
|
||||
public function getFunctions(): array
|
||||
{
|
||||
return [
|
||||
/* Returns the URL to a thumbnail of the given attachment */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue