Skip to content

Commit 18a28ce

Browse files
Vitexusclaude
andcommitted
fix: remove APP_VERSION define injection that breaks strict_types
The `sed -i "2a defined('APP_VERSION')..."` inserted a line after the blank line 2 in autoload.php, pushing declare(strict_types=1) to line 4 which PHP rejects as a fatal error. The version is already injected via the placeholder substitution on 'unknown'/'0.0.0', so the define is redundant. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 1c25d92 commit 18a28ce

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

debian/rules

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ override_dh_install:
3030
debian/csas-authorize/usr/share/csas-authorize/autoload.php
3131
sed -i "s|'library'|'$(PKG_TYPE)'|g" \
3232
debian/csas-authorize/usr/share/csas-authorize/autoload.php
33-
sed -i "2a defined('APP_VERSION') || define('APP_VERSION', '$(PKG_VERSION)');" \
34-
debian/csas-authorize/usr/share/csas-authorize/autoload.php
3533

3634
override_dh_auto_test:
3735
appstreamcli validate --pedantic --no-net \

0 commit comments

Comments
 (0)