Bug Description
The context of the code is absolutely ignored, especially in relation to processing variables based on previous conditions. Some conditions prevent the occurrence of a problem, which the plugin will subsequently warn about anyway (for example, work with a nullable type). Due to the price of the license, it is necessary to teach the plugin to sense the context and position in the code.
Environment:
PhpStorm version 2024.1.2, Build #PS-241.17011.119, built on May 28, Subscription for organizations
Plugin version 1.2.1
To Reproduce
Open latte file
Write a similar code structure as I show in the section below.
Additional context
It doesn't matter what data type is defined for the variable. It is repeated both with scalar types and with object instances, simply anywhere.
Bug Description The context of the code is absolutely ignored, especially in relation to processing variables based on previous conditions. Some conditions prevent the occurrence of a problem, which the plugin will subsequently warn about anyway (for example, work with a nullable type). Due to the price of the license, it is necessary to teach the plugin to sense the context and position in the code.
Environment:
To Reproduce
Code
Screenshots
Additional context It doesn't matter what data type is defined for the variable. It is repeated both with scalar types and with object instances, simply anywhere.