webpush icon indicating copy to clipboard operation
webpush copied to clipboard

\Safe\Resource error when installing package

Open dkvhin opened this issue 2 years ago • 3 comments

PHP : 8.1 Laravel 9

When installing, I'm getting the followig warning and error

PHP Warning: "resource" is not a supported builtin type and will be interpreted as a class name. Write "\Safe\resource" or import the class with "use" to suppress this warning in D:\xampp\htdocs\rland\vendor\thecodingmachine\safe\generated\sockets.php

integer" will be interpreted as a class name. Did you mean "int"? Write "\Safe\integer" or import the class with "use" to suppress this warning

dkvhin avatar Aug 09 '22 09:08 dkvhin

This package requires: minishlink/web-push ^7.0 that requires: web-token/jwt-util-ecc ^2.0|^3.0.2 that requires: thecodingmachine/safe ^0.1.14 that's getting too old to work with PHP8.1

Installing the latest version of web-token/jwt-util-ecc updates thecodingmachine/safe and solves the warning

githesix avatar Aug 09 '22 20:08 githesix

I have the same problem i am using laravel v9.24.0 and php 8.1.9

image

pablomadariaga avatar Aug 11 '22 16:08 pablomadariaga

same here

adeiming avatar Aug 13 '22 04:08 adeiming

This package requires: minishlink/web-push ^7.0 that requires: web-token/jwt-util-ecc ^2.0|^3.0.2 that requires: thecodingmachine/safe ^0.1.14 that's getting too old to work with PHP8.1

Installing the latest version of web-token/jwt-util-ecc updates thecodingmachine/safe and solves the warning

Worked.

Thank You :)

dkvhin avatar Aug 18 '22 05:08 dkvhin

@dkvhin How can I perform this update?

pablomadariaga avatar Aug 18 '22 13:08 pablomadariaga

@dkvhin How can I perform this update?

Just execute

composer require web-token/jwt-util-ecc

This will install the latest package with the updated dependencies

dkvhin avatar Aug 18 '22 13:08 dkvhin

@dkvhin¿Cómo puedo realizar esta actualización?

solo ejecuta

composer require web-token/jwt-util-ecc

Esto instalará el paquete más reciente con las dependencias actualizadas

thank you very much it worked

pablomadariaga avatar Aug 18 '22 13:08 pablomadariaga

I am still stuck on this! My php version is 8.0.28 and composer won't even let me force update "web-token/jwt-utill-ecc", any solution?

Mir-37 avatar Apr 28 '23 21:04 Mir-37