diff --git a/README.md b/README.md index 2e137a22..9ac917bf 100644 --- a/README.md +++ b/README.md @@ -39,5 +39,5 @@ PHPStan ------- https://phpstan.org/ ``` -docker run --rm -v $(pwd):/app ghcr.io/phpstan/phpstan:0.12.96 analyse -c /app/phpstan.neon /app +docker run --rm -v $(pwd):/app ghcr.io/phpstan/phpstan:0.12.99 analyse -c /app/phpstan.neon /app ``` \ No newline at end of file diff --git a/bl-kernel/admin/views/editor.php b/bl-kernel/admin/views/editor.php index c87b1e0b..444d5c6f 100644 --- a/bl-kernel/admin/views/editor.php +++ b/bl-kernel/admin/views/editor.php @@ -625,7 +625,7 @@ diff --git a/bl-kernel/helpers/text.class.php b/bl-kernel/helpers/text.class.php index 20151075..8524dd55 100644 --- a/bl-kernel/helpers/text.class.php +++ b/bl-kernel/helpers/text.class.php @@ -306,4 +306,10 @@ class Text { return intval($value) * ($s[strtolower(substr($value,-1))] ?: 1); } + public static function generateSlug(string $text): string { + $text = trim($text); + $slug = self::cleanUrl($text); + return $slug; + } + } diff --git a/phpstan.neon b/phpstan.neon index 8dde6e18..906df022 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,9 +1,9 @@ parameters: - #phpVersion: 70100 # PHP 7.1 - https://github.com/phpstan/phpstan/blob/master/playground-api/handler.ts#L38 + phpVersion: 70100 # PHP 7.1 - https://github.com/phpstan/phpstan/blob/master/playground-api/handler.ts#L38 #phpVersion: 70200 # PHP 7.2 #phpVersion: 70300 # PHP 7.3 #phpVersion: 70400 # PHP 7.4 - phpVersion: 80000 # PHP 8.0 + #phpVersion: 80000 # PHP 8.0 level: 0 excludePaths: analyse: