Skip to content

Commit

Permalink
Fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
daVitekPL committed Jul 9, 2024
1 parent 33d5e6e commit 493d1e7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Repositories/H5PFileStorageRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public function exportContent($id, $target)

public function exportLibrary($library, $target, $developmentPath = NULL)
{
$folder = \H5PCore::libraryToString($library, TRUE);
$folder = \H5PCore::libraryToString($library);
$srcPath = ($developmentPath === NULL ? "/libraries/{$folder}" : $developmentPath);
$this->copyFiles("{$this->path}{$srcPath}", "{$target}/{$folder}");
}
Expand Down
1 change: 1 addition & 0 deletions src/Repositories/H5PRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -1365,6 +1365,7 @@ public function replaceContentHubMetadataCache($metadata, $lang)
* @param string $lang Language code in ISO 639-1
*
*/
// @phpstan-ignore-next-line
public function getContentHubMetadataCache($lang = 'en')

Check failure on line 1369 in src/Repositories/H5PRepository.php

View workflow job for this annotation

GitHub Actions / php82-laravel-latest-phpstan-postgres

No error to ignore is reported on line 1369.
{
}
Expand Down
2 changes: 1 addition & 1 deletion src/Services/H5PCoreService.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class H5PCoreService extends H5PCore
{
protected bool $exportEnabled;
public bool $aggregateAssets;
public $aggregateAssets;

public function __construct(H5PFrameworkInterface $H5PFramework, $path, $url, $language = 'en', $export = FALSE)
{
Expand Down
1 change: 0 additions & 1 deletion src/Services/HeadlessH5PService.php
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,6 @@ public function getContentTypeCache(): array
public function getUpdatedContentHubMetadataCache()
{
$lang = config('hh5p.language');
// @phpstan-ignore-next-line
return $this->getCore()->getUpdatedContentHubMetadataCache($lang);

Check failure on line 672 in src/Services/HeadlessH5PService.php

View workflow job for this annotation

GitHub Actions / php82-laravel-latest-phpstan-postgres

Call to an undefined method H5PCore::getUpdatedContentHubMetadataCache().
}

Expand Down

0 comments on commit 493d1e7

Please sign in to comment.