Skip to content

Commit 6fa6eae

Browse files
committed
Update to php-node 1
Signed-off-by: Matteo Collina <[email protected]>
1 parent b113f7b commit 6fa6eae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export async function plugin (server, opts) {
7979
}
8080
reply.send(phpRes.body)
8181
} catch (error) {
82-
if (error.message === 'Path canonicalization error: No such file or directory (os error 2)') {
82+
if (error.message.indexOf('Script not found') !== -1) {
8383
reply.callNotFound()
8484
return
8585
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"homepage": "https://github.com/platformatic/php#readme",
3232
"dependencies": {
3333
"@fastify/static": "^8.2.0",
34-
"@platformatic/php-node": "^0.3.0",
34+
"@platformatic/php-node": "^1.0.0",
3535
"@platformatic/service": "^2.63.3",
3636
"json-schema-to-typescript": "^15.0.4"
3737
},

0 commit comments

Comments
 (0)