diff --git a/needs_fixing.txt b/needs_fixing.txt new file mode 100644 index 000000000..bc9122204 --- /dev/null +++ b/needs_fixing.txt @@ -0,0 +1,505 @@ + ------ ---------------------------------------------------- + Line src/Grav/Common/GPM/Response.php + ------ ---------------------------------------------------- + 3 Class Grav\Common\GPM\Response not found. + 🪪 class.notFound + 💡 Learn more at + https://phpstan.org/user-guide/discovering-symbols + ------ ---------------------------------------------------- + + ------ ----------------------------------------------------------- + Line src/Grav/Common/Grav.php + ------ ----------------------------------------------------------- + 148 No error to ignore is reported on line 148. + 681 Unsafe usage of new static(). + 🪪 new.static + 💡 See: + https://phpstan.org/blog/solving-phpstan-error-unsafe-usa + ge-of-new-static + ------ ----------------------------------------------------------- + + ------ ----------------------------------------------------------- + Line src/Grav/Common/Page/Collection.php + ------ ----------------------------------------------------------- + 112 Unsafe usage of new static(). + 🪪 new.static + 💡 See: + https://phpstan.org/blog/solving-phpstan-error-unsafe-usa + ge-of-new-static + 209 Unsafe usage of new static(). + 🪪 new.static + 💡 See: + https://phpstan.org/blog/solving-phpstan-error-unsafe-usa + ge-of-new-static + ------ ----------------------------------------------------------- + + ------ ----------------------------------------------------------- + Line src/Grav/Common/Processors/InitializeProcessor.php + ------ ----------------------------------------------------------- + 58 Unsafe usage of new static(). + 🪪 new.static + 💡 See: + https://phpstan.org/blog/solving-phpstan-error-unsafe-usa + ge-of-new-static + ------ ----------------------------------------------------------- + + ------ ------------------------------------------------------- + Line src/Grav/Common/Scheduler/Job.php + ------ ------------------------------------------------------- + 574 Call to static method sendEmail() on an unknown class + Grav\Plugin\Email\Utils. + 🪪 class.notFound + 💡 Learn more at + https://phpstan.org/user-guide/discovering-symbols + ------ ------------------------------------------------------- + + ------ ---------------------------------------------------------- + Line src/Grav/Common/Scheduler/SchedulerController.php + ------ ---------------------------------------------------------- + 41 Class Grav\Common\Scheduler\ModernScheduler not found. + 🪪 class.notFound + 💡 Learn more at + https://phpstan.org/user-guide/discovering-symbols + 45 Instantiated class Grav\Common\Scheduler\ModernScheduler + not found. + 🪪 class.notFound + 💡 Learn more at + https://phpstan.org/user-guide/discovering-symbols + ------ ---------------------------------------------------------- + + ------ -------------------------------------------------------- + Line src/Grav/Common/Service/SchedulerServiceProvider.php + ------ -------------------------------------------------------- + 55 Instantiated class Grav\Common\Scheduler\JobWorker not + found. + 🪪 class.notFound + 💡 Learn more at + https://phpstan.org/user-guide/discovering-symbols + ------ -------------------------------------------------------- + + ------ --------------------------------------------- + Line src/Grav/Common/Session.php + ------ --------------------------------------------- + 132 No error to ignore is reported on line 132. + 137 No error to ignore is reported on line 137. + ------ --------------------------------------------- + + ------ ----------------------------------------------------------- + Line src/Grav/Common/Uri.php + ------ ----------------------------------------------------------- + 1131 Unsafe usage of new static(). + 🪪 new.static + 💡 See: + https://phpstan.org/blog/solving-phpstan-error-unsafe-usa + ge-of-new-static + ------ ----------------------------------------------------------- + + ------ -------------------------------------------------------- + Line src/Grav/Console/Application/Application.php + ------ -------------------------------------------------------- + 125 Return type mixed of method + Grav\Console\Application\Application::configureIO() is + not covariant with return type void of method + Symfony\Component\Console\Application::configureIO(). + ------ -------------------------------------------------------- + + ------ --------------------------------------------------------- + Line src/Grav/Console/ConsoleCommand.php + ------ --------------------------------------------------------- + 29 Return type mixed of method + Grav\Console\ConsoleCommand::execute() is not covariant + with return type int of method + Symfony\Component\Console\Command\Command::execute(). + ------ --------------------------------------------------------- + + ------ ----------------------------------------------------------- + Line src/Grav/Console/ConsoleTrait.php (in context of class + Grav\Console\ConsoleCommand) + ------ ----------------------------------------------------------- + 89 Method Grav\Console\ConsoleCommand::addOption() overrides + method + Symfony\Component\Console\Command\Command::addOption() + but misses parameter #6 $suggestedValues. + ------ ----------------------------------------------------------- + + ------ -------------------------------------------------------- + Line src/Grav/Console/ConsoleTrait.php (in context of class + Grav\Console\GpmCommand) + ------ -------------------------------------------------------- + 89 Method Grav\Console\GpmCommand::addOption() overrides + method + Symfony\Component\Console\Command\Command::addOption() + but misses parameter #6 $suggestedValues. + ------ -------------------------------------------------------- + + ------ -------------------------------------------------------- + Line src/Grav/Console/ConsoleTrait.php (in context of class + Grav\Console\GravCommand) + ------ -------------------------------------------------------- + 89 Method Grav\Console\GravCommand::addOption() overrides + method + Symfony\Component\Console\Command\Command::addOption() + but misses parameter #6 $suggestedValues. + ------ -------------------------------------------------------- + + ------ ---------------------------------------------------------- + Line src/Grav/Console/GpmCommand.php + ------ ---------------------------------------------------------- + 31 Return type mixed of method + Grav\Console\GpmCommand::execute() is not covariant with + return type int of method + Symfony\Component\Console\Command\Command::execute(). + 39 No error to ignore is reported on line 39. + ------ ---------------------------------------------------------- + + ------ ----------------------------------------------------------- + Line src/Grav/Console/GravCommand.php + ------ ----------------------------------------------------------- + 29 Return type mixed of method + Grav\Console\GravCommand::execute() is not covariant with + return type int of method + Symfony\Component\Console\Command\Command::execute(). + ------ ----------------------------------------------------------- + + ------ ----------------------------------------------------------- + Line src/Grav/Framework/Acl/RecursiveActionIterator.php + ------ ----------------------------------------------------------- + 62 Unsafe usage of new static(). + 🪪 new.static + 💡 See: + https://phpstan.org/blog/solving-phpstan-error-unsafe-usa + ge-of-new-static + ------ ----------------------------------------------------------- + + ------ ---------------------------------------------------------- + Line src/Grav/Framework/Cache/CacheTrait.php (in context of + class Grav\Framework\Cache\AbstractCache) + ------ ---------------------------------------------------------- + 87 Return type mixed of method + Grav\Framework\Cache\AbstractCache::get() is not + covariant with return type mixed of method + Psr\SimpleCache\CacheInterface::get(). + 102 Return type mixed of method + Grav\Framework\Cache\AbstractCache::set() is not + covariant with return type bool of method + Psr\SimpleCache\CacheInterface::set(). + 117 Return type mixed of method + Grav\Framework\Cache\AbstractCache::delete() is not + covariant with return type bool of method + Psr\SimpleCache\CacheInterface::delete(). + 127 Return type mixed of method + Grav\Framework\Cache\AbstractCache::clear() is not + covariant with return type bool of method + Psr\SimpleCache\CacheInterface::clear(). + 138 Return type mixed of method + Grav\Framework\Cache\AbstractCache::getMultiple() is not + covariant with return type iterable of method + Psr\SimpleCache\CacheInterface::getMultiple(). + 181 Return type mixed of method + Grav\Framework\Cache\AbstractCache::setMultiple() is not + covariant with return type bool of method + Psr\SimpleCache\CacheInterface::setMultiple(). + 214 Return type mixed of method + Grav\Framework\Cache\AbstractCache::deleteMultiple() is + not covariant with return type bool of method + Psr\SimpleCache\CacheInterface::deleteMultiple(). + 242 Return type mixed of method + Grav\Framework\Cache\AbstractCache::has() is not + covariant with return type bool of method + Psr\SimpleCache\CacheInterface::has(). + ------ ---------------------------------------------------------- + + ------ ---------------------------------------------------------- + Line src/Grav/Framework/Collection/AbstractFileCollection.php + ------ ---------------------------------------------------------- + 95 No error to ignore is reported on line 95. + ------ ---------------------------------------------------------- + + ------ ----------------------------------------------------------- + Line src/Grav/Framework/Collection/AbstractIndexCollection.php + ------ ----------------------------------------------------------- + 154 No error to ignore is reported on line 154. + 168 No error to ignore is reported on line 168. + 185 No error to ignore is reported on line 185. + 201 No error to ignore is reported on line 201. + 507 Unsafe usage of new static(). + 🪪 new.static + 💡 See: + https://phpstan.org/blog/solving-phpstan-error-unsafe-usa + ge-of-new-static + ------ ----------------------------------------------------------- + + ------ ----------------------------------------------------------- + Line src/Grav/Framework/Collection/AbstractLazyCollection.php + ------ ----------------------------------------------------------- + 29 Property + Grav\Framework\Collection\AbstractLazyCollection::$collec + tion overriding property + Doctrine\Common\Collections\AbstractLazyCollection::$collection (Doctrine\Common\Collectio + ns\Collection|null) should also have native type + Doctrine\Common\Collections\Collection|null. + ------ ----------------------------------------------------------- + + ------ ----------------------------------------------------------- + Line src/Grav/Framework/Contracts/Relationships/RelationshipIn + terface.php + ------ ----------------------------------------------------------- + 80 Return type iterable of method + Grav\Framework\Contracts\Relationships\RelationshipInterf + ace::getIterator() is not covariant with tentative return + type Traversable of method IteratorAggregate::get + Iterator(). + 💡 Make it covariant, or use the #[\ReturnTypeWillChange] + attribute to temporarily suppress the error. + ------ ----------------------------------------------------------- + + ------ ----------------------------------------------------------- + Line src/Grav/Framework/Filesystem/Filesystem.php + ------ ----------------------------------------------------------- + 51 Unsafe usage of new static(). + 🪪 new.static + 💡 See: + https://phpstan.org/blog/solving-phpstan-error-unsafe-usa + ge-of-new-static + 252 No error to ignore is reported on line 252. + ------ ----------------------------------------------------------- + + ------ --------------------------------------------- + Line src/Grav/Framework/Flex/FlexCollection.php + ------ --------------------------------------------- + 102 No error to ignore is reported on line 102. + ------ --------------------------------------------- + + ------ ----------------------------------------------------------- + Line src/Grav/Framework/Flex/FlexIdentifier.php + ------ ----------------------------------------------------------- + 27 Unsafe usage of new static(). + 🪪 new.static + 💡 See: + https://phpstan.org/blog/solving-phpstan-error-unsafe-usa + ge-of-new-static + ------ ----------------------------------------------------------- + + ------ ---------------------------------------------------------- + Line src/Grav/Framework/Flex/FlexIndex.php + ------ ---------------------------------------------------------- + 109 No error to ignore is reported on line 109. + 934 Method Grav\Framework\Flex\FlexIndex::reduce() should + return TInitial|TReturn but return statement is missing. + 🪪 return.missing + ------ ---------------------------------------------------------- + + ------ ----------------------------------------------------------- + Line src/Grav/Framework/Form/FormFlashFile.php + ------ ----------------------------------------------------------- + 62 Return type mixed of method + Grav\Framework\Form\FormFlashFile::getStream() is not + covariant with return type + Psr\Http\Message\StreamInterface of method + Psr\Http\Message\UploadedFileInterface::getStream(). + 83 Return type mixed of method + Grav\Framework\Form\FormFlashFile::moveTo() is not + covariant with return type void of method + Psr\Http\Message\UploadedFileInterface::moveTo(). + 123 Return type mixed of method + Grav\Framework\Form\FormFlashFile::getSize() is not + covariant with return type int|null of method + Psr\Http\Message\UploadedFileInterface::getSize(). + 131 Return type mixed of method + Grav\Framework\Form\FormFlashFile::getError() is not + covariant with return type int of method + Psr\Http\Message\UploadedFileInterface::getError(). + 139 Return type mixed of method + Grav\Framework\Form\FormFlashFile::getClientFilename() is + not covariant with return type string|null of method + Psr\Http\Message\UploadedFileInterface::getClientFilename + (). + 147 Return type mixed of method + Grav\Framework\Form\FormFlashFile::getClientMediaType() + is not covariant with return type string|null of method + Psr\Http\Message\UploadedFileInterface::getClientMediaTyp + e(). + ------ ----------------------------------------------------------- + + ------ ----------------------------------------------------------- + Line src/Grav/Framework/Logger/Processors/UserProcessor.php + ------ ----------------------------------------------------------- + 24 Parameter #1 $record (array) of method + Grav\Framework\Logger\Processors\UserProcessor::__invoke( + ) is not contravariant with parameter #1 $record + (Monolog\LogRecord) of method + Monolog\Processor\ProcessorInterface::__invoke(). + ------ ----------------------------------------------------------- + + ------ ----------------------------------------------------------- + Line src/Grav/Framework/Media/MediaIdentifier.php + ------ ----------------------------------------------------------- + 30 Unsafe usage of new static(). + 🪪 new.static + 💡 See: + https://phpstan.org/blog/solving-phpstan-error-unsafe-usa + ge-of-new-static + ------ ----------------------------------------------------------- + + ------ ----------------------------------------------------------- + Line src/Grav/Framework/Media/UploadedMediaObject.php + ------ ----------------------------------------------------------- + 36 Unsafe usage of new static(). + 🪪 new.static + 💡 See: + https://phpstan.org/blog/solving-phpstan-error-unsafe-usa + ge-of-new-static + ------ ----------------------------------------------------------- + + ------ ----------------------------------------------------------- + Line src/Grav/Framework/Mime/MimeTypes.php + ------ ----------------------------------------------------------- + 42 Unsafe usage of new static(). + 🪪 new.static + 💡 See: + https://phpstan.org/blog/solving-phpstan-error-unsafe-usa + ge-of-new-static + ------ ----------------------------------------------------------- + + ------ ------------------------------------------------ + Line src/Grav/Framework/Object/ObjectCollection.php + ------ ------------------------------------------------ + 96 No error to ignore is reported on line 96. + ------ ------------------------------------------------ + + ------ --------------------------------------------- + Line src/Grav/Framework/Object/ObjectIndex.php + ------ --------------------------------------------- + 193 No error to ignore is reported on line 193. + ------ --------------------------------------------- + + ------ ----------------------------------------------------------- + Line src/Grav/Framework/Psr7/Stream.php + ------ ----------------------------------------------------------- + 31 Unsafe usage of new static(). + 🪪 new.static + 💡 See: + https://phpstan.org/blog/solving-phpstan-error-unsafe-usa + ge-of-new-static + ------ ----------------------------------------------------------- + + ------ ----------------------------------------------------------- + Line src/Grav/Framework/Psr7/Traits/ServerRequestDecoratorTrai + t.php (in context of class + Grav\Framework\Psr7\ServerRequest) + ------ ----------------------------------------------------------- + 51 Return type mixed of method + Grav\Framework\Psr7\ServerRequest::getAttributes() is not + covariant with return type array of method + Psr\Http\Message\ServerRequestInterface::getAttributes(). + 60 Return type mixed of method + Grav\Framework\Psr7\ServerRequest::getCookieParams() is + not covariant with return type array of method + Psr\Http\Message\ServerRequestInterface::getCookieParams( + ). + 76 Return type mixed of method + Grav\Framework\Psr7\ServerRequest::getQueryParams() is + not covariant with return type array of method + Psr\Http\Message\ServerRequestInterface::getQueryParams() + . + 84 Return type mixed of method + Grav\Framework\Psr7\ServerRequest::getServerParams() is + not covariant with return type array of method + Psr\Http\Message\ServerRequestInterface::getServerParams( + ). + 92 Return type mixed of method + Grav\Framework\Psr7\ServerRequest::getUploadedFiles() is + not covariant with return type array of method + Psr\Http\Message\ServerRequestInterface::getUploadedFiles + (). + 100 Return type mixed of method + Grav\Framework\Psr7\ServerRequest::withAttribute() is not + covariant with return type + Psr\Http\Message\ServerRequestInterface of method + Psr\Http\Message\ServerRequestInterface::withAttribute(). + 125 Return type mixed of method + Grav\Framework\Psr7\ServerRequest::withoutAttribute() is + not covariant with return type + Psr\Http\Message\ServerRequestInterface of method + Psr\Http\Message\ServerRequestInterface::withoutAttribute + (). + 136 Return type mixed of method + Grav\Framework\Psr7\ServerRequest::withCookieParams() is + not covariant with return type + Psr\Http\Message\ServerRequestInterface of method + Psr\Http\Message\ServerRequestInterface::withCookieParams + (). + 147 Return type mixed of method + Grav\Framework\Psr7\ServerRequest::withParsedBody() is + not covariant with return type + Psr\Http\Message\ServerRequestInterface of method + Psr\Http\Message\ServerRequestInterface::withParsedBody() + . + 158 Return type mixed of method + Grav\Framework\Psr7\ServerRequest::withQueryParams() is + not covariant with return type + Psr\Http\Message\ServerRequestInterface of method + Psr\Http\Message\ServerRequestInterface::withQueryParams( + ). + 169 Return type mixed of method + Grav\Framework\Psr7\ServerRequest::withUploadedFiles() is + not covariant with return type + Psr\Http\Message\ServerRequestInterface of method + Psr\Http\Message\ServerRequestInterface::withUploadedFile + s(). + ------ ----------------------------------------------------------- + + ------ ----------------------------------------------------------- + Line src/Grav/Framework/Relationships/Relationships.php + ------ ----------------------------------------------------------- + 107 Return type mixed of method + Grav\Framework\Relationships\Relationships::offsetSet() + is not covariant with tentative return type void of + method + ArrayAccess>::of + fsetSet(). + 💡 Make it covariant, or use the #[\ReturnTypeWillChange] + attribute to temporarily suppress the error. + 116 Return type mixed of method + Grav\Framework\Relationships\Relationships::offsetUnset() + is not covariant with tentative return type void of + method + ArrayAccess>::of + fsetUnset(). + 💡 Make it covariant, or use the #[\ReturnTypeWillChange] + attribute to temporarily suppress the error. + ------ ----------------------------------------------------------- + + ------ ----------------------------------------------------------- + Line src/Twig/DeferredExtension/DeferredNodeVisitorCompat.php + ------ ----------------------------------------------------------- + 30 Parameter #1 $node (Twig_NodeInterface) of method + Twig\DeferredExtension\DeferredNodeVisitorCompat::enterNo + de() is not contravariant with parameter #1 $node + (Twig\Node\Node) of method + Twig\NodeVisitor\NodeVisitorInterface::enterNode(). + 30 Parameter $node of method + Twig\DeferredExtension\DeferredNodeVisitorCompat::enterNo + de() has invalid type Twig_NodeInterface. + 🪪 class.notFound + 46 Parameter #1 $node (Twig_NodeInterface) of method + Twig\DeferredExtension\DeferredNodeVisitorCompat::leaveNo + de() is not contravariant with parameter #1 $node + (Twig\Node\Node) of method + Twig\NodeVisitor\NodeVisitorInterface::leaveNode(). + 46 Parameter $node of method + Twig\DeferredExtension\DeferredNodeVisitorCompat::leaveNo + de() has invalid type Twig_NodeInterface. + 🪪 class.notFound + ------ ----------------------------------------------------------- + + [ERROR] Found 74 errors + diff --git a/system/recovery.php b/system/recovery.php index 6427a8091..ff4739efb 100644 --- a/system/recovery.php +++ b/system/recovery.php @@ -177,6 +177,9 @@ header('Content-Type: text/html; charset=utf-8');

Latest snapshot: + +
+ — Grav
Created diff --git a/user/config/media.yaml b/user/config/media.yaml new file mode 100644 index 000000000..e69de29bb diff --git a/user/config/system.yaml b/user/config/system.yaml index 2e992778d..5b599eba8 100644 --- a/user/config/system.yaml +++ b/user/config/system.yaml @@ -1,45 +1,242 @@ absolute_urls: false - +timezone: null +param_sep: ':' +wrapped_site: false +reverse_proxy_setup: false +force_ssl: false +force_lowercase_urls: true +custom_base_url: null +username_regex: '^[a-z0-9_-]{3,16}$' +pwd_regex: '(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}' +intl_enabled: true +http_x_forwarded: + protocol: true + host: false + port: true + ip: true +languages: + supported: null + default_lang: null + include_default_lang: true + include_default_lang_file_extension: true + translations: true + translations_fallback: true + session_store_active: false + http_accept_language: false + override_locale: false + pages_fallback_only: false + debug: false home: - alias: '/home' - + alias: /home + hide_in_urls: false pages: + type: regular + dirs: + - 'page://' theme: quark - markdown: - extra: false + order: + by: default + dir: asc + list: + count: 20 + dateformat: + default: null + short: 'jS M Y' + long: 'F jS \a\t g:ia' + publish_dates: true process: markdown: true twig: false - + twig_first: false + never_cache_twig: false + events: + page: true + twig: true + markdown: + extra: false + auto_line_breaks: false + auto_url_links: false + escape_markup: false + special_chars: + '>': gt + '<': lt + valid_link_attributes: + - rel + - target + - id + - class + - classes + types: + - html + - htm + - xml + - txt + - json + - rss + - atom + append_url_extension: null + expires: 604800 + cache_control: null + last_modified: false + etag: true + vary_accept_encoding: false + redirect_default_code: '302' + redirect_trailing_slash: 1 + redirect_default_route: 0 + ignore_files: + - .DS_Store + ignore_folders: + - .git + - .idea + ignore_hidden: true + hide_empty_folders: false + url_taxonomy_filters: true + frontmatter: + process_twig: false + ignore_fields: + - form + - forms cache: enabled: true check: method: file driver: auto - prefix: 'g' - + prefix: g + purge_at: '0 4 * * *' + clear_at: '0 3 * * *' + clear_job_type: standard + clear_images_by_default: false + cli_compatibility: false + lifetime: 604800 + purge_max_age_days: 30 + gzip: false + allow_webserver_gzip: false + redis: + socket: '0' + password: null + database: null + server: null + port: null + memcache: + server: null + port: null + memcached: + server: null + port: null twig: cache: true debug: true auto_reload: true autoescape: true - + undefined_functions: true + undefined_filters: true + safe_functions: { } + safe_filters: { } + umask_fix: false assets: css_pipeline: false + css_pipeline_include_externals: true + css_pipeline_before_excludes: true css_minify: true + css_minify_windows: false css_rewrite: true js_pipeline: false + js_pipeline_include_externals: true + js_pipeline_before_excludes: true js_module_pipeline: false + js_module_pipeline_include_externals: true + js_module_pipeline_before_excludes: true js_minify: true - + enable_asset_timestamp: false + enable_asset_sri: false + collections: + jquery: 'system://assets/jquery/jquery-3.x.min.js' errors: - display: true + display: 1 log: true - +log: + handler: file + syslog: + facility: local6 + tag: grav debugger: enabled: false - twig: true + provider: clockwork + censored: false shutdown: close_connection: true + twig: true +images: + adapter: gd + default_image_quality: 85 + cache_all: false + cache_perms: '0755' + debug: false + auto_fix_orientation: true + seofriendly: false + cls: + auto_sizes: false + aspect_ratio: false + retina_scale: '1' + defaults: + loading: auto + decoding: auto + fetchpriority: auto + watermark: + image: 'system://images/watermark.png' + position_y: center + position_x: center + scale: 33 + watermark_all: false +media: + enable_media_timestamp: false + unsupported_inline_types: null + allowed_fallback_types: null + auto_metadata_exif: false + upload_limit: 2097152 +session: + enabled: true + initialize: true + timeout: 1800 + name: grav-site + uniqueness: path + secure: false + secure_https: true + httponly: true + samesite: Lax + split: true + domain: null + path: null gpm: + releases: testing + official_gpm_only: true verify_peer: true +updates: + safe_upgrade: true +http: + method: auto + enable_proxy: true + proxy_url: null + proxy_cert_path: null + concurrent_connections: 5 + verify_peer: true + verify_host: true +accounts: + type: regular + storage: file + avatar: gravatar +flex: + cache: + index: + enabled: true + lifetime: 60 + object: + enabled: true + lifetime: 600 + render: + enabled: true + lifetime: 600 +strict_mode: + yaml_compat: false + twig_compat: false + blueprint_compat: false