Git Product home page Git Product logo

Comments (5)

ramsey avatar ramsey commented on August 25, 2024

What version of ramsey/uuid do you have installed? Run composer info ramsey/uuid to find out which version is installed in your project.

I'm not familiar with "Sugar." What is that?

from uuid.

hubPS7 avatar hubPS7 commented on August 25, 2024

from uuid.

ramsey avatar ramsey commented on August 25, 2024

Thanks. It looks like SugarCRM is using an old version of ramsey/uuid. Do you know where I can find their "community" edition so I can see if it's feasible to submit a pull request to them to update the library?

from uuid.

prys-at avatar prys-at commented on August 25, 2024

I have the same issue with v4.7.4 using php version 8.2.6

I looked at the old issue #439 which mentioned this being fixed in v3.9.7 - which it was, however I'd rather use the newest version.

3.9.7 Uuid::jsonSerialize function

/**
     * Converts this UUID object to a string when the object is serialized
     * with `json_encode()`
     *
     * @return string
     * @link http://php.net/manual/en/class.jsonserializable.php
     */
    #[ReturnTypeWillChange]
    public function jsonSerialize()
    {
        return $this->toString();
    }

v4.7.4 Uuid::jsonSerialize function, which has been that way since 4.0.0

/**
     * Converts the UUID to a string for JSON serialization
     */
    public function jsonSerialize(): string
    {
        return $this->toString();
    }

from uuid.

ramsey avatar ramsey commented on August 25, 2024

I have the same issue with v4.7.4 using php version 8.2.6

Are you saying that you're seeing the deprecation message when using ramsey/uuid v4.74 on PHP 8.2.6?

from uuid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.