Skip to content

PHPCBF and PHPCS commands not working #781

Closed Answered by fredden
UVLabs asked this question in Q&A
Discussion options

You must be logged in to vote

I've been able to reproduce the non-output with the following composer.json content. If I don't include the freemius/wordpress-sdk package, then all works as expected.

{
    "require-dev": {
        "squizlabs/php_codesniffer": "3.11.2"
    },
    "require": {
        "freemius/wordpress-sdk": "2.10.1"
    }
}

At the top of start.php there's this code, which terminates the process.

	if ( ! defined( 'ABSPATH' ) ) {
		exit;
	}

This is being called with the following stack trace:

#0 vendor/composer/autoload_real.php(41): require()
#1 vendor/composer/autoload_real.php(45): {closure}()
#2 vendor/autoload.php(25): ComposerAutoloaderInit41bce37011465c3ade93ec528f45db4b::getLoader()
#3 vendor/squ…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@UVLabs
Comment options

@jrfnl
Comment options

jrfnl Jan 7, 2025
Maintainer

@jrfnl
Comment options

jrfnl Jan 9, 2025
Maintainer

Answer selected by fredden
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants