fix phpstan

This commit is contained in:
Hystepik
2025-02-10 10:45:38 +01:00
parent bc54d4c6cf
commit 7d5929ec1f
2 changed files with 6 additions and 6 deletions

View File

@@ -94,7 +94,7 @@ function websiteconfigPrepareHead($object)
/**
* Prepare array of directives for Website
*
* @return array<array{string:array{string:string}}> Array of directives
* @return array<string,array<string,string>> Array of directives
*/
function websiteGetContentPolicyDirectives()
{
@@ -136,7 +136,7 @@ function websiteGetContentPolicyDirectives()
/**
* Prepare array of sources for Website
*
* @return array<array{string:array{string:array{string:string}}}> Array of sources
* @return array<string,array<string,array<string,string>>> Array of sources
*/
function websiteGetContentPolicySources()
{
@@ -190,7 +190,7 @@ function websiteGetContentPolicySources()
* Transform a Content Security Policy to an array
* @param string $forceCSP content security policy
*
* @return array<array{string:array{"data":array{int:string},int:string}}> Array of sources
* @return array<non-falsy-string, array<'data'|int<0, max>, list<string>|string>> Array of sources
*/
function websiteGetContentPolicyToArray($forceCSP)
{