AxeWP / wp-graphql-gravity-forms

GraphQL API for interacting with Gravity Forms.
GNU General Public License v3.0
163 stars 29 forks source link

fix: check if classes are already loaded before attempting to autoload them. #442

Closed justlevine closed 2 months ago

justlevine commented 2 months ago

What

This PR updates the Autoloader to check if our main GF class is already loaded, before attempting to load the autoloader

Why

If the entire package is loaded as a dependency, it's possible the autoloader will be generated higher up in the tree.

Fixes #439

How

Instead of coupling this to Composer, we use a class_exists() check.

Testing Instructions

Additional Info

Checklist:

coveralls commented 2 months ago

Pull Request Test Coverage Report for Build 10222692586

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
src/Autoloader.php 0 2 0.0%
<!-- Total: 0 2 0.0% -->
Totals Coverage Status
Change from base Build 9535520304: -0.02%
Covered Lines: 6390
Relevant Lines: 7604

💛 - Coveralls