Skip to content

Sync wsdl-tools console version & add release Makefile#38

Merged
veewee merged 1 commit into
php-soap:mainfrom
veewee:fix/console-version-sync
May 29, 2026
Merged

Sync wsdl-tools console version & add release Makefile#38
veewee merged 1 commit into
php-soap:mainfrom
veewee:fix/console-version-sync

Conversation

@veewee
Copy link
Copy Markdown
Member

@veewee veewee commented May 29, 2026

Problem

The wsdl-tools console application hardcoded its version (1.0.0), which drifted from the released git tags, so ./bin/wsdl printed a stale version.

Changes

  • Extract the version into a AppFactory::APP_VERSION constant set to 1.21.0 (the latest release), so it is both discoverable and rewritable.
  • Add a Makefile tag target (modelled on phpro/grumphp) that rewrites APP_VERSION, lints the file, commits and creates a signed tag without the v prefix — matching the current tag convention — so the constant and the git tag stay in sync by construction:
make tag TAG=1.22.0

The console application hardcoded its version (1.0.0), which drifted from
the released git tags so `./bin/wsdl` printed a stale version.

- Extract the version into a `APP_VERSION` constant set to 1.21.0 (the
  latest release), so it is both discoverable and rewritable.
- Add a Makefile `tag` target (modelled on phpro/grumphp) that rewrites
  APP_VERSION, lints, commits and creates a signed tag without the `v`
  prefix, keeping the constant and the tag in sync by construction.
@veewee veewee merged commit 0337934 into php-soap:main May 29, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant