Files
camelia-orm/composer.json
T
dgarcia 0e756e45c7
Tests / PHP 8.4 (push) Failing after 5m34s
refactor!: require PHP 8.4
Drop support for PHP 8.3 and lower. The package now declares >=8.4, and CI runs
only on 8.4.

- composer.json: require php >=8.4.
- mago.toml: php-version = "8.4", matching the minimum supported version.
- phpstan.neon: phpVersion 80400.
- Upgrade phpstan/phpstan to ^2.3: 1.x cannot parse `new Foo()->bar()`, which the
  8.4 formatter now emits.
- Fix the type errors PHPStan 2 reports: class-string<static> variance,
  optional array offsets in fromEnvironment, list vs array for PdoConnection::$lru,
  ReflectionClass<Model> docblocks, Repository made covariant in T, and a redundant
  null comparison in validateRelationPath.
- CI: single PHP 8.4 job using the php:8.4-cli container instead of setup-php,
  which failed with a TLS handshake timeout on the runner.

BREAKING CHANGE: PHP 8.4 is now required.
2026-11-15 10:58:11 -03:00

77 lines
2.0 KiB
JSON

{
"name": "camelia/orm",
"description": "Lightweight attribute-mapped Active Record ORM for MariaDB/MySQL over PDO.",
"type": "library",
"license": "MIT",
"keywords": ["orm", "activerecord", "pdo", "mysql", "mariadb"],
"authors": [
{
"name": "Dario Garcia",
"email": "dario61081@gmail.com"
}
],
"require": {
"php": ">=8.4",
"ext-mbstring": "*",
"ext-pdo": "*",
"psr/log": "^3.0"
},
"require-dev": {
"carthage-software/mago": "^1.60",
"phpstan/phpstan": "2.3",
"phpunit/phpunit": "^10.5 || ^11.0"
},
"suggest": {
"brick/math": "Support for BigDecimal-mapped properties"
},
"autoload": {
"psr-4": {
"Camelia\\Orm\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Camelia\\Orm\\Tests\\": "tests/"
}
},
"scripts": {
"test": "phpunit --configuration phpunit.xml.dist",
"test:integration": "phpunit --configuration phpunit.integration.xml.dist",
"coverage": "phpunit --configuration phpunit.coverage.xml.dist --coverage-text",
"fmt": "mago fmt",
"fmt:check": "mago fmt --check",
"lint": "mago lint",
"analyze": "mago analyze",
"phpstan": "php -d memory_limit=1G vendor/bin/phpstan analyse --configuration phpstan.neon --no-progress",
"check": [
"@fmt:check",
"@lint",
"@analyze",
"@phpstan",
"@test"
]
},
"config": {
"sort-packages": true
},
"minimum-stability": "stable",
"prefer-stable": true,
"archive": {
"exclude": [
"/tests",
"/mago-baseline.toml",
"/mago.toml",
"/phpstan.neon",
"/phpunit.integration.xml.dist",
"/phpunit.xml.dist",
"/AGENTS.md",
"/.gitignore"
]
},
"extra": {
"branch-alias": {
"dev-main": "1.0.x-dev"
}
}
}