a26121ab73
Generic: Project CI / Tests (push) Blocked by required conditions
Generic: Repo Health / Scripts governance (push) Blocked by required conditions
Generic: Repo Health / Repository health (push) Blocked by required conditions
Generic: Repo Health / Report Issues (push) Blocked by required conditions
Generic: Repo Health / Site Health (push) Has been skipped
Generic: Repo Health / Access control (push) Successful in 1s
Generic: Project CI / Lint & Validate (push) Successful in 12s
Import workflows, issue templates, CI config, standard files (LICENSE, CONTRIBUTING, SECURITY, CODE_OF_CONDUCT, Makefile, composer.json, phpstan.neon) from Template-Joomla. Custom manifest: pkg_mokosuiteforms, platform joomla.
33 lines
1.2 KiB
Plaintext
33 lines
1.2 KiB
Plaintext
# Copyright (C) 2026 Moko Consulting <hello@mokoconsulting.tech>
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
#
|
|
# PHPStan configuration for Joomla extension repositories.
|
|
# Extends the base MokoStandards config and adds Joomla framework class stubs
|
|
# so PHPStan can resolve Factory, CMSApplication, User, Table, etc.
|
|
# without requiring a full Joomla installation.
|
|
|
|
parameters:
|
|
level: 5
|
|
|
|
paths:
|
|
- src
|
|
|
|
excludePaths:
|
|
- vendor
|
|
- node_modules
|
|
|
|
# Joomla framework stubs — resolved via the enterprise package from vendor/
|
|
stubFiles:
|
|
- vendor/mokoconsulting-tech/enterprise/templates/stubs/joomla.php
|
|
|
|
# Suppress errors that are structural in Joomla's service-container architecture
|
|
ignoreErrors:
|
|
# Joomla's service-based dependency injection returns mixed from getApplication()
|
|
- '#Cannot call method .+ on Joomla\\CMS\\Application\\CMSApplication\|null#'
|
|
# Factory::getX() patterns are safe at runtime even when nullable in stubs
|
|
- '#Call to static method [a-zA-Z]+\(\) on an interface#'
|
|
|
|
reportUnmatchedIgnoredErrors: false
|
|
checkMissingIterableValueType: false
|
|
checkGenericClassInNonGenericObjectType: false
|