Running Magento 2.4.7 on Nexcess, php 8.1. though I tried with 8.2 as well.
Compile error:
<code>[servername]$ php bin/magento setup:di:compile
Compilation was started.
Repositories code generation... 1/9 [===>------------------------] 11% 1 sec 117.0
MiBPHP Fatal error: Null can not be used as a standalone type in
/servername/vendor/paypal/module-braintree-core/Plugin/DeleteStoredPaymentPlugin.php
on line 57
</code>
<code>[servername]$ php bin/magento setup:di:compile
Compilation was started.
Repositories code generation... 1/9 [===>------------------------] 11% 1 sec 117.0
MiBPHP Fatal error: Null can not be used as a standalone type in
/servername/vendor/paypal/module-braintree-core/Plugin/DeleteStoredPaymentPlugin.php
on line 57
</code>
[servername]$ php bin/magento setup:di:compile
Compilation was started.
Repositories code generation... 1/9 [===>------------------------] 11% 1 sec 117.0
MiBPHP Fatal error: Null can not be used as a standalone type in
/servername/vendor/paypal/module-braintree-core/Plugin/DeleteStoredPaymentPlugin.php
on line 57
I use Adobe Payment Services, but not BrainTree or PayPal directly and could happily shut it down for now to get past this. My site is down. I tried turning off every PayPal and BrainTree module I could find, but it didn’t fix the problem.
<code>- Magento_PaymentServicesPaypalGraphQl
- Magento_Paypal
- Magento_PaypalCaptcha
- Magento_PaypalGraphQl
- Magento_ReCaptchaPaypal
- Magento_PaymentServicesBase
- Magento_PaymentServicesDashboard
- Magento_PaymentServicesPaypal
- Magento_PaymentServicesSaaSExport
- PayPal_Braintree
- PayPal_BraintreeCustomerBalance
- PayPal_BraintreeGiftCardAccount
- PayPal_BraintreeGiftWrapping
- PayPal_BraintreeGraphQl
</code>
<code>- Magento_PaymentServicesPaypalGraphQl
- Magento_Paypal
- Magento_PaypalCaptcha
- Magento_PaypalGraphQl
- Magento_ReCaptchaPaypal
- Magento_PaymentServicesBase
- Magento_PaymentServicesDashboard
- Magento_PaymentServicesPaypal
- Magento_PaymentServicesSaaSExport
- PayPal_Braintree
- PayPal_BraintreeCustomerBalance
- PayPal_BraintreeGiftCardAccount
- PayPal_BraintreeGiftWrapping
- PayPal_BraintreeGraphQl
</code>
- Magento_PaymentServicesPaypalGraphQl
- Magento_Paypal
- Magento_PaypalCaptcha
- Magento_PaypalGraphQl
- Magento_ReCaptchaPaypal
- Magento_PaymentServicesBase
- Magento_PaymentServicesDashboard
- Magento_PaymentServicesPaypal
- Magento_PaymentServicesSaaSExport
- PayPal_Braintree
- PayPal_BraintreeCustomerBalance
- PayPal_BraintreeGiftCardAccount
- PayPal_BraintreeGiftWrapping
- PayPal_BraintreeGraphQl
The code at Line 57 of that module:
<code> public function beforeDelete(
PaymentTokenRepositoryInterface $subject,
PaymentTokenInterface $paymentToken
): null {
</code>
<code> public function beforeDelete(
PaymentTokenRepositoryInterface $subject,
PaymentTokenInterface $paymentToken
): null {
</code>
public function beforeDelete(
PaymentTokenRepositoryInterface $subject,
PaymentTokenInterface $paymentToken
): null {
Thoughts to get me compiled back up and running?