PHP 8.0 Constructor Property Promotion

Constructor Property Promotion

PHP has recently launched its new version i.e. PHP 8 and it consists of many new features, constructor property promotion is one of the new features introduced in PHP 8. In previous versions of PHP(~7.*), we used to define our variables as class property and assign its value in the constructor...

CSP In Magento 2

Content Security Policy

CSP is a standard introduced to prevent attacks on your website. Attacks mean an XSS, clickjacking, or malicious code injection. CSP is widely supported by all the modern web browsers and it gives privilege to website owners to approve origins of content that browsers should be allowed to load on that website....

Scroll to top