Skip to content

Insert fails when using with Braintree PHP installed and having const "Braintree" on the saved class #155

Open
@RobIsHere

Description

@RobIsHere

Because of the is_subclass_of check in php-rql
https://github.com/danielmewes/php-rql/blob/master/rdb/DatumConverter.php#L37

saving something like this fails because the check triggers the autoloader that in turn reveals an unfortunate code in Braintree's lib.

class User {
    const PAYMENT_PROVIDER = 'Braintree'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions