Closed
Description
What were you trying to do?
Following advice, I updated my composer.json
to require "nativephp/electron": "^1.0",
and updated.
Although the electron package updated, the laravel package did not. It appears this is due to relaxed constraints within composer.json
in the electron package.
What happened?
nativephp/electron
updated to 1.0.0-beta.1
.
nativephp/laravel
remained at the version I was upgrading from, 0.7.0
:
pete in ~/Code/BillingWizard on master λ composer show nativephp/laravel
name : nativephp/laravel
descrip. : Laravel wrapper for the NativePHP framework.
keywords : laravel, nativephp, nativephp-laravel
versions : * 0.7.0
How to reproduce the bug
- Install nativephp/electron @ v0.7.0
- Update
composer.json
so that you now require v1.0 or higher. - Run composer update
- ASSERT:
nativephp/electron
is updated.nativephp/laravel
is not. - EXPECT:
nativephp/laravel
to also be at version1.0.0-beta.1
Package Versions
{
"installed": [
{
"name": "nativephp/electron",
"direct-dependency": true,
"homepage": "https://github.com/nativephp/electron",
"source": "https://github.com/NativePHP/electron/tree/0.7.0",
"version": "0.7.0",
"description": "Electron wrapper for the NativePHP framework.",
"abandoned": false
},
{
"name": "nativephp/laravel",
"direct-dependency": true,
"homepage": "https://github.com/nativephp/laravel",
"source": "https://github.com/NativePHP/laravel/tree/0.7.0",
"version": "0.7.0",
"description": "Laravel wrapper for the NativePHP framework.",
"abandoned": false
},
{
"name": "nativephp/php-bin",
"direct-dependency": false,
"homepage": "https://nativephp.com",
"source": "https://github.com/NativePHP/php-bin/tree/0.5.6",
"version": "0.5.6",
"description": "PHP binaries used by the NativePHP framework",
"abandoned": false
}
]
}
PHP Version
8.3.16
Laravel Version
11.39.1
Node Version
22.11.0
Which operating systems have you seen this occur on?
macOS
OS version
MacOS Sequoia 15.2
Notes
Workaround
To workaround this, manually add nativephp/laravel
to your composer.json require
section as follows:
"nativephp/laravel": "^1.0"
After doing so, run composer update
again.