Skip to content

Commit

Permalink
Strict types
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed May 18, 2024
1 parent 8f9af3c commit 5670aaf
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions .composer-require-checker.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"GALETTE_CARD_ROWS",
"GALETTE_CARD_WIDTH",
"GALETTE_COMPAT_VERSION",
"GALETTE_SYSCONFIG_PATH",
"GALETTE_CONFIG_PATH",
"GALETTE_DATA_PATH",
"GALETTE_DB_VERSION",
Expand Down
2 changes: 2 additions & 0 deletions _config.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@
* along with Galette. If not, see <http://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

define('FULLCARD_SMARTY_PREFIX', 'plugins_fullcard');
2 changes: 2 additions & 0 deletions _define.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* along with Galette. If not, see <http://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

$this->register(
'Galette Fullcard', //Name
'Full member card as PDF', //Short description
Expand Down
2 changes: 2 additions & 0 deletions _preferences.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* along with Galette. If not, see <http://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

$_preferences = array(
'pref_adhesion_form' => '\GaletteFullcard\PdfFullcard'
);
2 changes: 2 additions & 0 deletions _routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* along with Galette. If not, see <http://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

use GaletteFullcard\PdfFullcard;
use Galette\Entity\Adherent;
use Analog\Analog;
Expand Down
2 changes: 2 additions & 0 deletions lib/GaletteFullcard/PdfFullcard.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* along with Galette. If not, see <http://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

namespace GaletteFullcard;

use Galette\Entity\PdfModel;
Expand Down
4 changes: 2 additions & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ parameters:
- lib/
scanFiles:
- _config.inc.php
- ../../config/paths.inc.php
- ../../includes/sys_config/paths.inc.php
- ../../config/config.inc.php.dist
- ../../config/galette_tcpdf_config.php
- ../../includes/sys_config/galette_tcpdf_config.php
scanDirectories:
- ../../includes/
- ../../lib/

0 comments on commit 5670aaf

Please sign in to comment.